blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
332
content_id
stringlengths
40
40
detected_licenses
sequencelengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
7
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
557 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
684M
star_events_count
int64
0
77.7k
fork_events_count
int64
0
48k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
82 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
5.41M
extension
stringclasses
11 values
content
stringlengths
7
5.41M
authors
sequencelengths
1
1
author
stringlengths
0
161
58969dd2cc07952d0db75ad1306b130c5d66767d
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/neo4j/2017/12/TestKernelTransactionHandle.java
bf09872f56ee1f1a9851e33a6644fb6befe6af90
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Java
false
false
4,035
java
/* * Copyright (c) 2002-2017 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.neo4j.kernel.impl.api; import java.util.Collections; import java.util.Map; import java.util.Objects; import java.util.Optional; import java.util.stream.Stream; import org.neo4j.kernel.api.KernelTransaction; import org.neo4j.kernel.api.KernelTransactionHandle; import org.neo4j.kernel.api.exceptions.Status; import org.neo4j.kernel.api.query.ExecutingQuery; import org.neo4j.internal.kernel.api.security.SecurityContext; import org.neo4j.kernel.impl.locking.ActiveLock; /** * A test implementation of {@link KernelTransactionHandle} that simply wraps a given {@link KernelTransaction}. */ public class TestKernelTransactionHandle implements KernelTransactionHandle { private static final String USER_TRANSACTION_NAME_PREFIX = "transaction-"; private final KernelTransaction tx; public TestKernelTransactionHandle( KernelTransaction tx ) { this.tx = Objects.requireNonNull( tx ); } @Override public long lastTransactionIdWhenStarted() { return tx.lastTransactionIdWhenStarted(); } @Override public long lastTransactionTimestampWhenStarted() { return tx.lastTransactionTimestampWhenStarted(); } @Override public long startTime() { return tx.startTime(); } @Override public long timeoutMillis() { return tx.timeout(); } @Override public boolean isOpen() { return tx.isOpen(); } @Override public boolean markForTermination( Status reason ) { tx.markForTermination( reason ); return true; } @Override public SecurityContext securityContext() { return tx.securityContext(); } @Override public Map<String,Object> getMetaData() { return Collections.emptyMap(); } @Override public Optional<Status> terminationReason() { return tx.getReasonIfTerminated(); } @Override public boolean isUnderlyingTransaction( KernelTransaction tx ) { return this.tx == tx; } @Override public long getUserTransactionId() { return tx.getTransactionId(); } @Override public String getUserTransactionName() { return USER_TRANSACTION_NAME_PREFIX + getUserTransactionId(); } @Override public Stream<ExecutingQuery> executingQueries() { throw new UnsupportedOperationException(); } @Override public Stream<? extends ActiveLock> activeLocks() { return Stream.empty(); } @Override public TransactionExecutionStatistic transactionStatistic() { return TransactionExecutionStatistic.NOT_AVAILABLE; } @Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } TestKernelTransactionHandle that = (TestKernelTransactionHandle) o; return tx.equals( that.tx ); } @Override public int hashCode() { return tx.hashCode(); } @Override public String toString() { return "TestKernelTransactionHandle{tx=" + tx + "}"; } }
4c27e308019cddac1bd4fa768483bcad9e195252
d2de1a80b213d17e924b3ac642a668d0f1911618
/src/test/java/com/bitplan/fritzbox/FritzboxMock.java
3107aa581b03e3ec564910f7e42c47292bac6a81
[ "Apache-2.0" ]
permissive
schmichri/com.bitplan.fritzbox
88b6bedaa0a0e73350e1efd36e5eb99b250c2ffa
31291b4ffe5932680e49afb03d76d25e0cc00af3
refs/heads/master
2023-01-02T08:26:56.197788
2020-10-31T09:35:58
2020-10-31T09:35:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
27,381
java
/** * Copyright (c) 2018 BITPlan GmbH * * http://www.bitplan.com * * This file is part of the Opensource project at: * https://github.com/BITPlan/com.bitplan.fritzbox * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.bitplan.fritzbox; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.when; import java.util.logging.Level; import java.util.logging.Logger; /** * Mock a Fritzbox * * @author wf * */ public class FritzboxMock { // prepare a LOGGER protected static Logger LOGGER = Logger.getLogger("com.bitplan.fritzbox"); /** * get a mocked Fritzbox that behaves like a real fritzbox according to the * test by simply "replaying" the function results * from the real environment of the developer * * @return a Fritzbox * @throws Exception */ public static Fritzbox getFritzbox() throws Exception { LOGGER.log(Level.INFO, "Mocking Fritzbox"); Fritzbox fritzbox = spy(new FritzboxImpl()); when(fritzbox.getUrl()).thenReturn("https://mockmyfritzbox"); when(fritzbox.getPassword()).thenReturn("mocked secret password"); when(fritzbox.getUsername()).thenReturn("mockeduser"); FritzBoxSessionImpl session = spy(new FritzBoxSessionImpl(fritzbox)); // now we can mock the session login doReturn(session).when(fritzbox).login(); doReturn("<?xml version=\"1.0\" encoding=\"utf-8\"?><SessionInfo><SID>0000000000000000</SID><Challenge>3c36041f</Challenge><BlockTime>0</BlockTime><Rights></Rights></SessionInfo>").when(session).doGetResponse("/login_sid.lua",""); doReturn("<?xml version=\"1.0\" encoding=\"utf-8\"?><SessionInfo><SID>b4125bc782830e71</SID><Challenge>e8398dca</Challenge><BlockTime>0</BlockTime><Rights><Name>Dial</Name><Access>2</Access><Name>App</Name><Access>2</Access><Name>HomeAuto</Name><Access>2</Access><Name>BoxAdmin</Name><Access>2</Access><Name>Phone</Name><Access>2</Access></Rights></SessionInfo>").when(session).doGetResponse("/login_sid.lua","?username=mockeduser&response=3c36041f-deadbfa9c98c8bfac5d1a445240cb647"); doReturn("<?xml version=\"1.0\" encoding=\"utf-8\"?><SessionInfo><SID>0000000000000000</SID><Challenge>896cf006</Challenge><BlockTime>0</BlockTime><Rights></Rights></SessionInfo>").when(session).doGetResponse("/login_sid.lua",""); doReturn("<?xml version=\"1.0\" encoding=\"utf-8\"?><SessionInfo><SID>922e18b0f103bef3</SID><Challenge>d91e52fe</Challenge><BlockTime>0</BlockTime><Rights><Name>Dial</Name><Access>2</Access><Name>App</Name><Access>2</Access><Name>HomeAuto</Name><Access>2</Access><Name>BoxAdmin</Name><Access>2</Access><Name>Phone</Name><Access>2</Access></Rights></SessionInfo>").when(session).doGetResponse("/login_sid.lua","?username=mockeduser&response=896cf006-25743dd7d7573619f19135c7d9cb90a7"); doReturn("087610092895,087610033476,087610092893,087610420045,087610128900,087610420054,087610092898,116570102016,116570095795,116570077974").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchlist"); doReturn("<devicelist version=\"1\"><device identifier=\"08761 0092895\" id=\"16\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Jupiter</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>14090</power><energy>4636567</energy></powermeter><temperature><celsius>235</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0033476\" id=\"17\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Aquarium</name><switch><state>0</state><mode>auto</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>1140453</energy></powermeter><temperature><celsius>295</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0092893\" id=\"19\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Wohnzimmer</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>81648</energy></powermeter><temperature><celsius>285</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0420045\" id=\"20\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Island</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>135680</power><energy>222232</energy></powermeter><temperature><celsius>265</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0128900\" id=\"22\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Venus</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>890184</energy></powermeter><temperature><celsius>310</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0420054\" id=\"23\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Media</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>22740</power><energy>198190</energy></powermeter><temperature><celsius>265</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0092898\" id=\"24\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Merkur</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>465305</energy></powermeter><temperature><celsius>305</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0863063\" id=\"25\" functionbitmask=\"1280\" fwversion=\"03.86\" manufacturer=\"AVM\" productname=\"FRITZ!DECT Repeater 100\"><present>1</present><name>Repeater</name><temperature><celsius>290</celsius><offset>0</offset></temperature></device><device identifier=\"11657 0102016\" id=\"26\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 210\"><present>1</present><name>Printer</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>61900</power><energy>464702</energy></powermeter><temperature><celsius>265</celsius><offset>0</offset></temperature></device><device identifier=\"11657 0095795\" id=\"27\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 210\"><present>0</present><name>capri</name><switch><state></state><mode></mode><lock></lock><devicelock></devicelock></switch><powermeter><power></power><energy></energy></powermeter><temperature><celsius></celsius><offset></offset></temperature></device><device identifier=\"11657 0077974\" id=\"28\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 210\"><present>1</present><name>garten</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>14202</energy></powermeter><temperature><celsius>335</celsius><offset>0</offset></temperature></device></devicelist>").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getdevicelistinfos"); doReturn("Jupiter").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchname&ain=087610092895"); doReturn("Aquarium").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchname&ain=087610033476"); doReturn("Wohnzimmer").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchname&ain=087610092893"); doReturn("Island").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchname&ain=087610420045"); doReturn("Venus").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchname&ain=087610128900"); doReturn("Media").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchname&ain=087610420054"); doReturn("Merkur").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchname&ain=087610092898"); doReturn("Repeater").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchname&ain=087610863063"); doReturn("Printer").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchname&ain=116570102016"); doReturn("capri").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchname&ain=116570095795"); doReturn("garten").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchname&ain=116570077974"); doReturn("<?xml version=\"1.0\" encoding=\"utf-8\"?><SessionInfo><SID>0000000000000000</SID><Challenge>410c743c</Challenge><BlockTime>0</BlockTime><Rights></Rights></SessionInfo>").when(session).doGetResponse("/login_sid.lua",""); doReturn("<?xml version=\"1.0\" encoding=\"utf-8\"?><SessionInfo><SID>86cb08bb95a5a9a7</SID><Challenge>4019da62</Challenge><BlockTime>0</BlockTime><Rights><Name>Dial</Name><Access>2</Access><Name>App</Name><Access>2</Access><Name>HomeAuto</Name><Access>2</Access><Name>BoxAdmin</Name><Access>2</Access><Name>Phone</Name><Access>2</Access></Rights></SessionInfo>").when(session).doGetResponse("/login_sid.lua","?username=mockeduser&response=410c743c-31913bfeddabe69ef2e075c7c1c49877"); doReturn("<devicelist version=\"1\"><device identifier=\"08761 0092895\" id=\"16\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Jupiter</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>14090</power><energy>4636567</energy></powermeter><temperature><celsius>235</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0033476\" id=\"17\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Aquarium</name><switch><state>0</state><mode>auto</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>1140453</energy></powermeter><temperature><celsius>295</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0092893\" id=\"19\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Wohnzimmer</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>81648</energy></powermeter><temperature><celsius>285</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0420045\" id=\"20\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Island</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>135680</power><energy>222232</energy></powermeter><temperature><celsius>265</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0128900\" id=\"22\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Venus</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>890184</energy></powermeter><temperature><celsius>310</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0420054\" id=\"23\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Media</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>22740</power><energy>198190</energy></powermeter><temperature><celsius>265</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0092898\" id=\"24\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Merkur</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>465305</energy></powermeter><temperature><celsius>305</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0863063\" id=\"25\" functionbitmask=\"1280\" fwversion=\"03.86\" manufacturer=\"AVM\" productname=\"FRITZ!DECT Repeater 100\"><present>1</present><name>Repeater</name><temperature><celsius>290</celsius><offset>0</offset></temperature></device><device identifier=\"11657 0102016\" id=\"26\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 210\"><present>1</present><name>Printer</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>61900</power><energy>464702</energy></powermeter><temperature><celsius>265</celsius><offset>0</offset></temperature></device><device identifier=\"11657 0095795\" id=\"27\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 210\"><present>0</present><name>capri</name><switch><state></state><mode></mode><lock></lock><devicelock></devicelock></switch><powermeter><power></power><energy></energy></powermeter><temperature><celsius></celsius><offset></offset></temperature></device><device identifier=\"11657 0077974\" id=\"28\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 210\"><present>1</present><name>garten</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>14202</energy></powermeter><temperature><celsius>335</celsius><offset>0</offset></temperature></device></devicelist>").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getdevicelistinfos"); doReturn("087610092895,087610033476,087610092893,087610420045,087610128900,087610420054,087610092898,116570102016,116570095795,116570077974").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchlist"); doReturn("<?xml version=\"1.0\" encoding=\"utf-8\"?><SessionInfo><SID>0000000000000000</SID><Challenge>f4ef4415</Challenge><BlockTime>0</BlockTime><Rights></Rights></SessionInfo>").when(session).doGetResponse("/login_sid.lua",""); doReturn("<?xml version=\"1.0\" encoding=\"utf-8\"?><SessionInfo><SID>3a29a79ace9d1aa6</SID><Challenge>2a488d08</Challenge><BlockTime>0</BlockTime><Rights><Name>Dial</Name><Access>2</Access><Name>App</Name><Access>2</Access><Name>HomeAuto</Name><Access>2</Access><Name>BoxAdmin</Name><Access>2</Access><Name>Phone</Name><Access>2</Access></Rights></SessionInfo>").when(session).doGetResponse("/login_sid.lua","?username=mockeduser&response=f4ef4415-0dbb5ce247ad580fcb5670c8ee706df4"); doReturn("<devicelist version=\"1\"><device identifier=\"08761 0092895\" id=\"16\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Jupiter</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>14090</power><energy>4636567</energy></powermeter><temperature><celsius>235</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0033476\" id=\"17\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Aquarium</name><switch><state>0</state><mode>auto</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>1140453</energy></powermeter><temperature><celsius>295</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0092893\" id=\"19\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Wohnzimmer</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>81648</energy></powermeter><temperature><celsius>285</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0420045\" id=\"20\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Island</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>135680</power><energy>222232</energy></powermeter><temperature><celsius>265</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0128900\" id=\"22\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Venus</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>890184</energy></powermeter><temperature><celsius>310</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0420054\" id=\"23\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Media</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>22740</power><energy>198190</energy></powermeter><temperature><celsius>265</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0092898\" id=\"24\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Merkur</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>465305</energy></powermeter><temperature><celsius>305</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0863063\" id=\"25\" functionbitmask=\"1280\" fwversion=\"03.86\" manufacturer=\"AVM\" productname=\"FRITZ!DECT Repeater 100\"><present>1</present><name>Repeater</name><temperature><celsius>290</celsius><offset>0</offset></temperature></device><device identifier=\"11657 0102016\" id=\"26\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 210\"><present>1</present><name>Printer</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>61900</power><energy>464702</energy></powermeter><temperature><celsius>265</celsius><offset>0</offset></temperature></device><device identifier=\"11657 0095795\" id=\"27\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 210\"><present>0</present><name>capri</name><switch><state></state><mode></mode><lock></lock><devicelock></devicelock></switch><powermeter><power></power><energy></energy></powermeter><temperature><celsius></celsius><offset></offset></temperature></device><device identifier=\"11657 0077974\" id=\"28\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 210\"><present>1</present><name>garten</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>14202</energy></powermeter><temperature><celsius>335</celsius><offset>0</offset></temperature></device></devicelist>").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getdevicelistinfos"); doReturn("087610092895,087610033476,087610092893,087610420045,087610128900,087610420054,087610092898,116570102016,116570095795,116570077974").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchlist"); doReturn("<?xml version=\"1.0\" encoding=\"utf-8\"?><SessionInfo><SID>0000000000000000</SID><Challenge>d195eb40</Challenge><BlockTime>0</BlockTime><Rights></Rights></SessionInfo>").when(session).doGetResponse("/login_sid.lua",""); doReturn("<?xml version=\"1.0\" encoding=\"utf-8\"?><SessionInfo><SID>2a71d1782b8c06b2</SID><Challenge>78d443ff</Challenge><BlockTime>0</BlockTime><Rights><Name>Dial</Name><Access>2</Access><Name>App</Name><Access>2</Access><Name>HomeAuto</Name><Access>2</Access><Name>BoxAdmin</Name><Access>2</Access><Name>Phone</Name><Access>2</Access></Rights></SessionInfo>").when(session).doGetResponse("/login_sid.lua","?username=mockeduser&response=d195eb40-1a4a87fd8d0fe231137b0039739ac822"); doReturn("<devicelist version=\"1\"><device identifier=\"08761 0092895\" id=\"16\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Jupiter</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>14090</power><energy>4636567</energy></powermeter><temperature><celsius>235</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0033476\" id=\"17\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Aquarium</name><switch><state>0</state><mode>auto</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>1140453</energy></powermeter><temperature><celsius>295</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0092893\" id=\"19\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Wohnzimmer</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>81648</energy></powermeter><temperature><celsius>285</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0420045\" id=\"20\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Island</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>127170</power><energy>222236</energy></powermeter><temperature><celsius>265</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0128900\" id=\"22\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Venus</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>890184</energy></powermeter><temperature><celsius>310</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0420054\" id=\"23\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Media</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>22740</power><energy>198190</energy></powermeter><temperature><celsius>265</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0092898\" id=\"24\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 200\"><present>1</present><name>Merkur</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>465305</energy></powermeter><temperature><celsius>305</celsius><offset>0</offset></temperature></device><device identifier=\"08761 0863063\" id=\"25\" functionbitmask=\"1280\" fwversion=\"03.86\" manufacturer=\"AVM\" productname=\"FRITZ!DECT Repeater 100\"><present>1</present><name>Repeater</name><temperature><celsius>290</celsius><offset>0</offset></temperature></device><device identifier=\"11657 0102016\" id=\"26\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 210\"><present>1</present><name>Printer</name><switch><state>1</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>61900</power><energy>464702</energy></powermeter><temperature><celsius>265</celsius><offset>0</offset></temperature></device><device identifier=\"11657 0095795\" id=\"27\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 210\"><present>0</present><name>capri</name><switch><state></state><mode></mode><lock></lock><devicelock></devicelock></switch><powermeter><power></power><energy></energy></powermeter><temperature><celsius></celsius><offset></offset></temperature></device><device identifier=\"11657 0077974\" id=\"28\" functionbitmask=\"2944\" fwversion=\"03.87\" manufacturer=\"AVM\" productname=\"FRITZ!DECT 210\"><present>1</present><name>garten</name><switch><state>0</state><mode>manuell</mode><lock>0</lock><devicelock>0</devicelock></switch><powermeter><power>0</power><energy>14202</energy></powermeter><temperature><celsius>335</celsius><offset>0</offset></temperature></device></devicelist>").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getdevicelistinfos"); doReturn("087610092895,087610033476,087610092893,087610420045,087610128900,087610420054,087610092898,116570102016,116570095795,116570077974").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchlist"); doReturn("Media").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchname&ain=087610420054"); doReturn("1").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchpresent&ain=087610420054"); doReturn("1").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchstate&ain=087610420054"); doReturn("22740").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchpower&ain=087610420054"); doReturn("198190").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=getswitchenergy&ain=087610420054"); doReturn("265").when(session).doGetResponse("/webservices/homeautoswitch.lua","?switchcmd=gettemperature&ain=087610420054"); // CallList doReturn("sep=;\n" + "Typ;Datum;Name;Rufnummer;Nebenstelle;Eigene Rufnummer;Dauer\n" + "1;03.08.18 20:23;Reiner Notbogen;02154999999;My AB;Internet: 999999;0:01\n" + "4;03.08.18 12:37;;02154999999;999 Kitchen;Internet: 999999;0:02\n").when(session).doGetResponse("/fon_num/foncalls_list.lua","?csv="); return fritzbox; } }
e72ccce9f0055132978ea032184f13decb21e297
5fe02649f7ce20a1c3ea5063bbed04da41ee54cb
/src/Offer49/NthUglyNumber.java
fa0591784b344d7a256b1d084a74ca73e2fc0a21
[]
no_license
KevinWorkSpace/SwordOffer
2be9d76d29bc70104c9a12a190837653915b48c1
eb84d7f7bfa78a8fcc185f891537afef00095da1
refs/heads/master
2023-03-16T16:07:47.957102
2021-03-04T11:24:10
2021-03-04T11:24:10
303,393,766
0
0
null
null
null
null
UTF-8
Java
false
false
716
java
package Offer49; public class NthUglyNumber { public int nthUglyNumber(int n) { int[] dp = new int[n]; dp[0] = 1; int a = 0; int b = 0; int c = 0; for (int i=1; i<n; i++) { dp[i] = Math.min(Math.min(dp[a] * 2, dp[b] * 3), dp[c] * 5); if (dp[i] == dp[a] * 2) { a ++; } if (dp[i] == dp[b] * 3) { b ++; } if (dp[i] == dp[c] * 5) { c ++; } } return dp[n-1]; } public static void main(String[] args) { NthUglyNumber nthUglyNumber = new NthUglyNumber(); nthUglyNumber.nthUglyNumber(10); } }
0fe72c4ea0dfc6cbda7197071d06672a035a95f9
7667a704c603c5e81aaa4d4ac0c6cdab66fa3840
/src/test/java/fr/mickael/dales/raymondelib/RaymondeLibApplicationTests.java
367210a633f5f5d9f77af2ac0a2c2184b95b0e45
[]
no_license
mickael-dales/la-librairie-de-raymonde
5ab980f60425d506c8c3fbe662fdda78cc0432c4
2d1068026e6e151d3a7024236d3009e18fd50dca
refs/heads/main
2021-06-16T00:50:34.581435
2021-04-14T17:20:40
2021-04-14T17:20:40
157,006,447
0
0
null
2018-11-11T09:39:52
2018-11-10T17:50:55
Java
UTF-8
Java
false
false
225
java
package fr.mickael.dales.raymondelib; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class RaymondeLibApplicationTests { @Test void contextLoads() { } }
7e677d7a039d276feb55d2e553e82b9508f66cf8
4eff49edc7a35e4d53e0a8cfda58d321783157d7
/src/jdkSRC/Builder.java
12ed9cc4e43f79d6d21fa667134c3ebe5997647f
[]
no_license
Qiankun-FQH/DesignPattern01
bb10a2e6c178745c7bc03245dd9e2aabaace37de
18cf8074d7da9393a379d83fb6ba7cdac8e6e7fe
refs/heads/master
2021-01-03T23:17:36.242437
2020-02-27T08:26:03
2020-02-27T08:26:03
240,278,299
0
0
null
null
null
null
UTF-8
Java
false
false
229
java
package jdkSRC; public class Builder { public static void main(String[] args) { // TODO Auto-generated method stub StringBuilder stringBuilder = new StringBuilder("hello,world"); System.out.println(stringBuilder); } }
[ "qiankun.com" ]
qiankun.com
6fdf82f367e29676bee1319c3079fbc75df0733d
2471213b5f9e1a263b5da97135b6c66dde4091c3
/tw-agenda-entidades/src/br/com/treinaweb/agenda/entidades/Contato.java
a6340637b105fb2a8e65ea6f1f4714a292438e8e
[]
no_license
arturtarcisio/JAVAFX-PROJECT-MINHA-AGENDA
7575f008f2994b4814a5bb4160c49ba0f6fb0afc
7a0279a759041755d7713519efbd67f8d0293a83
refs/heads/master
2020-12-21T05:36:37.196897
2020-02-04T21:39:08
2020-02-04T21:39:08
236,325,507
0
0
null
null
null
null
UTF-8
Java
false
false
589
java
package br.com.treinaweb.agenda.entidades; public class Contato { private int id; private String nome; private int idade; private String telefone; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; } public int getIdade() { return idade; } public void setIdade(int idade) { this.idade = idade; } public String getTelefone() { return telefone; } public void setTelefone(String telefone) { this.telefone = telefone; } }
50525bd1453762d9ed9ff6427cf81efbbabd4b53
6f12fbb4592d99e05605926a17b4e588c98f2b49
/nonameProject/src/main/java/noname/product/controller/ProductController.java
8c01a457b4d51c876a1a72e6e330d29e8ec117a1
[]
no_license
SeungWoo-Oh/nonameProject
bf03de899c829d37f8319ac9f3aa91bce2dc4831
0f6e93f4b12f306c0984db65ee01860f9ed5d782
refs/heads/master
2021-01-19T15:06:21.365445
2017-10-29T07:38:29
2017-10-29T07:38:29
100,944,080
0
0
null
null
null
null
UTF-8
Java
false
false
2,259
java
package noname.product.controller; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.apache.log4j.Logger; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import noname.common.common.CommandMap; import noname.product.service.ProductService; @Controller public class ProductController { Logger log = Logger.getLogger(this.getClass()); @Resource(name="productService") private ProductService productService; /*상품 상세정보 JSP 호출함수*/ @RequestMapping(value="/openProductInfo.do") public ModelAndView openProductPage(CommandMap commandMap) throws Exception{ ModelAndView mv = new ModelAndView("product/product_Info"); return mv; } /*상품 상세정보 출력*/ @RequestMapping(value="/showProductInfo.do") public ModelAndView showProductInfo(CommandMap commandMap) throws Exception{ ModelAndView mv = new ModelAndView("jsonView"); Map<String, Object> productInfo = productService.selectProductInfo(commandMap.getMap()); mv.addObject("productInfo", productInfo); return mv; } /*이용후기 출력*/ @RequestMapping(value="/showReviewBoard.do") public ModelAndView showReviewBoard(CommandMap commandMap) throws Exception{ ModelAndView mv = new ModelAndView("jsonView"); Map<String, Object> reviewMap = productService.showReviewBoard(commandMap.getMap()); mv.addObject("reviewMap", reviewMap); return mv; } /*============= BYOUNGSOO =============*/ /*Product List*/ @RequestMapping(value="/showProductList.do") public ModelAndView showProductList(CommandMap commandMap) throws Exception{ ModelAndView mv = new ModelAndView("product/product_list"); List<Map<String, Object>> productListMap = productService.showProductList(commandMap.getMap()); mv.addObject("productListMap", productListMap); System.out.println("ByoungsooLog"); System.out.println(productListMap.get(0).get("product_id")); System.out.println(productListMap.get(0).get("product_name")); System.out.println(productListMap.get(0).get("product_price")); System.out.println(productListMap.get(0).get("product_mainImg")); return mv; } }
3d81d6d4142f5dd01fb83ed75491cd1631868ec6
9d5714f657d15b1e4e9163581800c6151fabb6a0
/app/EventCenter.java
6728ef972cab6b9782a9570ef46442b0080f4728
[]
no_license
RUAN0007/Crisis_Management_System
c282057cd8b899a6062ae2de46c52f61775771ba
4967cfd4eb6256bfe82fcff15c146082b4596a6f
refs/heads/master
2020-05-04T14:55:44.349252
2014-11-01T15:04:08
2014-11-01T15:04:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,474
java
import java.io.File; import java.sql.Timestamp; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.*; import com.avaje.ebean.Ebean; import broadcaster.*; import formatter.*; import models.*; public class EventCenter { static EventCenter defaultCenter = new EventCenter(); private EmailSender emailSender; private SMSSender smsSender; private FacebookSender fbSender; private TwitterSender twitterSender; private EventFormatter eventFormatter; private PDFGenerator pdfGenerator; private EventCenter() { super(); } public EventCenter(EmailSender emailSender, SMSSender smsSender, FacebookSender fbSender, TwitterSender twitterSender, EventFormatter eventFormatter, PDFGenerator pdfGenerator) { super(); this.emailSender = emailSender; this.smsSender = smsSender; this.fbSender = fbSender; this.twitterSender = twitterSender; this.eventFormatter = eventFormatter; this.pdfGenerator = pdfGenerator; } public static EventCenter getDefaultDispatchCenter(){ return defaultCenter; } public void handleIncomingEvent(Event event){ List<Dispatch> dispatches = dispatch(event); Ebean.save(dispatches); } private List<Dispatch> dispatch(Event event){ List<Agency> responsibleAgencies = event.getEventType().getResponsibleAgencies(); List<Dispatch> dispatches = new ArrayList<Dispatch>(); for(Agency agency:responsibleAgencies){ Dispatch dispatch = new Dispatch(); dispatch.setAgency(agency); dispatch.setEvent(event); dispatch.setDispatchTime(new Timestamp(System.currentTimeMillis())); dispatches.add(dispatch); } //TODO //Send SMS to the responsible agencies sendEventSMSToAgency(responsibleAgencies, event); return dispatches; } public boolean sendEventSMSToAgency(List<Agency> agencies,Event sms){ List<String> phones = new ArrayList<>(); for(Agency agency:agencies){ phones.add(agency.getPhone()); } return smsSender.SendSMS("You have an incomg event", phones); } //Only the citizen in related region will be notified public boolean broadcastSMSToPublic(Event event){ String location = event.getLocation(); List<Public> citizens = Public.find .where() .eq("location =", location) .findList(); List<String> phones = new ArrayList<>(); for(Public citizen:citizens){ phones.add(citizen.getHandPhone()); } String message = eventFormatter.formatSMS(event); return smsSender.SendSMS(message, phones); } //Broadcast both on facebook and twitter public boolean broadcastEventOnSocialMedia(Event event){ String message = eventFormatter.formatSocialMedia(event); return fbSender.postMessage(message) && twitterSender.postMessage(message); } private String getPMEmail(){ Agency primeMinster = Agency.find.byId((long)0); return primeMinster.getEmail(); } public boolean sendEventReport(Event event){ String reportName = "EmergencyReportOnEvent" + event.getId() + ".pdf"; File report = pdfGenerator.generateEmergencyReport(event,reportName); String file = pdfGenerator.getEmergyReportDirectory() + File.separator + report.getName(); String subject = "Emergency Report"; String text = "Dear Prime Minister, \nThere is an emergent event on " + event.getLocation() + ". Refer to the attachment for details."; List<String> destinations = new ArrayList<String>(); destinations.add(getPMEmail()); return emailSender.SendMail(destinations, subject, text, file); } public List<Event> getEventsWithinMin(int periodInMin){ long lowerTimeBound = System.currentTimeMillis() - periodInMin * 60 * 1000; List<Event> events = Event.find.where() .gt("callingTime", lowerTimeBound) .orderBy("callingTime desc") .findList(); return events; } public List<Event> getEventsWithinMin(int periodInMin,Long typeID){ long lowerTimeBound = System.currentTimeMillis() - periodInMin * 60 * 1000; List<Event> events = Event.find.where() .gt("callingTime", lowerTimeBound) .eq("eventType.id", typeID) .orderBy("callingTime desc") .findList(); return events; } public boolean sendSummaryReport(int periodInMin){ List<Event> events = getEventsWithinMin(periodInMin); DateFormat dateFormat = new SimpleDateFormat("dd/MM/yy_hh:mm",Locale.US); Date date = new Date(); String time = dateFormat.format(date); String subject = "Summary Report"; String text = "Dear Prime Minister, \nThis is a summary event at " + time + ". Refer to the attachment for details."; String reportName = "SummaryReportAt" + time; File report = pdfGenerator.generateReport(events, reportName); String reportFilePath = pdfGenerator.getSummaryReportDirectory() + File.separator + report.getName(); List<String> destinations = new ArrayList<String>(); destinations.add(getPMEmail()); return emailSender.SendMail(destinations, subject, text, reportFilePath); } public List<Notification> notify(Event event){ ArrayList<Notification> notifications = new ArrayList<Notification>(); int priority = event.getPriority(); if(priority >= 2){ //TODO //Send to social media //Should be a pipe-and-filter architecture Notification ntfc = new Notification(); ntfc.setEvent(event); //TODO //ntfc.setMediaType(mediaType); ntfc.setSendTime(new Timestamp(System.currentTimeMillis())); } return notifications; } }
59c126b765f1c0b89d80dc60cea02a8d5c61bd7f
861ce730e76be6eb456fc0c972935aa6cb8ee759
/poleams-workbench/src/main/java/com/precisionhawk/poleams/wb/process/ResourceUploadProcess.java
699b72eac255d4af7a3e9d5b18afb84427de88f3
[]
no_license
mohitsahunitrr/poleams_system
95265866c22e551fcdfd58c66d6ea1d1d0a921ef
66596b0f9b02fbf958873eef8630568b4cc1594e
refs/heads/master
2020-05-25T12:16:43.553016
2019-05-17T17:11:00
2019-05-17T17:11:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
26,269
java
package com.precisionhawk.poleams.wb.process; import com.precisionhawk.ams.bean.AssetInspectionSearchParams; import com.precisionhawk.ams.bean.ImageScaleRequest; import com.precisionhawk.ams.bean.ResourceSearchParams; import com.precisionhawk.ams.bean.SiteInspectionSearchParams; import com.precisionhawk.ams.domain.AssetInspection; import com.precisionhawk.ams.domain.ResourceMetadata; import com.precisionhawk.ams.domain.ResourceStatus; import com.precisionhawk.ams.domain.ResourceType; import com.precisionhawk.ams.domain.WorkOrder; import com.precisionhawk.ams.support.httpclient.HttpClientUtilities; import com.precisionhawk.ams.util.CollectionsUtilities; import com.precisionhawk.ams.util.ContentTypeUtilities; import com.precisionhawk.ams.util.ImageUtilities; import com.precisionhawk.ams.wb.process.ServiceClientCommandProcess; import com.precisionhawk.ams.webservices.ResourceWebService; import com.precisionhawk.ams.webservices.client.Environment; import com.precisionhawk.poleams.bean.PoleSearchParams; import com.precisionhawk.poleams.bean.FeederSearchParams; import com.precisionhawk.poleams.domain.Pole; import com.precisionhawk.poleams.domain.PoleInspection; import com.precisionhawk.poleams.domain.ResourceTypes; import com.precisionhawk.poleams.domain.Feeder; import com.precisionhawk.poleams.domain.FeederInspection; import com.precisionhawk.poleams.webservices.FeederInspectionWebService; import com.precisionhawk.poleams.webservices.FeederWebService; import com.precisionhawk.poleams.webservices.PoleInspectionWebService; import com.precisionhawk.poleams.webservices.PoleWebService; import com.precisionhawk.ams.webservices.WorkOrderWebService; import com.precisionhawk.poleams.bean.TransmissionLineSearchParams; import com.precisionhawk.poleams.bean.TransmissionStructureSearchParams; import com.precisionhawk.poleams.domain.TransmissionLine; import com.precisionhawk.poleams.domain.TransmissionLineInspection; import com.precisionhawk.poleams.domain.TransmissionStructure; import com.precisionhawk.poleams.domain.TransmissionStructureInspection; import com.precisionhawk.poleams.webservices.TransmissionLineInspectionWebService; import com.precisionhawk.poleams.webservices.TransmissionLineWebService; import com.precisionhawk.poleams.webservices.TransmissionStructureInspectionWebService; import com.precisionhawk.poleams.webservices.TransmissionStructureWebService; import java.io.File; import java.io.IOException; import java.io.PrintStream; import java.net.URISyntaxException; import java.time.ZonedDateTime; import java.util.List; import java.util.Queue; import java.util.UUID; import org.apache.commons.imaging.ImageInfo; import org.apache.commons.imaging.ImageReadException; import org.apache.commons.imaging.Imaging; import org.apache.commons.imaging.common.ImageMetadata; import org.apache.commons.imaging.formats.jpeg.JpegImageMetadata; import org.apache.commons.imaging.formats.tiff.TiffImageMetadata; import org.jboss.resteasy.client.ClientResponseFailure; /** * * @author pchapman */ public class ResourceUploadProcess extends ServiceClientCommandProcess { private static final double SCALE_WIDTH = 100; private static final ImageScaleRequest SCALE_IMAGE_REQ; static { SCALE_IMAGE_REQ = new ImageScaleRequest(); SCALE_IMAGE_REQ.setResultType(ImageScaleRequest.ContentType.JPEG); SCALE_IMAGE_REQ.setScaleOperation(ImageScaleRequest.ScaleOperation.ScaleToWidth); SCALE_IMAGE_REQ.setHeight(0.0); SCALE_IMAGE_REQ.setWidth(SCALE_WIDTH); } private static final String ARG_FEEDER_ID = "-feeder"; private static final String ARG_FPL_ID = "-fplid"; private static final String ARG_LINE_ID = "-line"; private static final String ARG_ORDER_NUM = "-orderNum"; private static final String ARG_RESOURCE_ID = "-resourceId"; private static final String ARG_REPLACE = "-replace"; private static final String ARG_STRUCT = "-struct"; private static final String ARG_TYPE = "-type"; private static final String COMMAND = "uploadResource"; private static final String HELP = "\t" + COMMAND + " [" + ARG_FEEDER_ID + " FeederId]" + " [" + ARG_FPL_ID + " FPL_Id]" + " [" + ARG_ORDER_NUM + " WorkOrderNum" + " [" + ARG_RESOURCE_ID + " ResourceId] " + " [" + ARG_TYPE + " ResourceType]" + " [" + ARG_REPLACE + "]" + " path/to/resource"; private String contentType; private String feederId; private String fplId; private String fileName; private String lineId; private String orderNum; private boolean replace = false; private String resourceId; private ResourceType resourceType; private String struct; public ResourceUploadProcess() {} ResourceUploadProcess(String feederId, String orderNum, String fplId, String resourceId, ResourceType resourceType, boolean replace, String fileName, String contentType) { this.contentType = contentType; this.feederId = feederId; this.fileName = fileName; this.fplId = fplId; this.orderNum = orderNum; this.replace = replace; this.resourceId = resourceId; this.resourceType = resourceType; } @Override protected boolean processArg(String arg, Queue<String> args) { switch (arg) { case ARG_FEEDER_ID: if (feederId == null) { feederId = args.poll(); return feederId != null; } else { return false; } case ARG_FPL_ID: if (fplId == null) { fplId = args.poll(); return fplId != null; } else { return false; } case ARG_LINE_ID: if (lineId == null) { lineId = args.poll(); return lineId != null; } else { return false; } case ARG_ORDER_NUM: if (orderNum == null) { orderNum = args.poll(); return orderNum != null; } else { return false; } case ARG_REPLACE: if (replace) { return false; } else { replace = true; return true; } case ARG_RESOURCE_ID: if (resourceId == null) { resourceId = args.poll(); return resourceId != null; } else { return false; } case ARG_STRUCT: if (struct == null) { struct = args.poll(); return struct != null; } else { return false; } case ARG_TYPE: if (resourceType == null) { resourceType = ResourceTypes.valueOf(args.poll()); return resourceType != null; } else { return false; } default: if (fileName == null) { fileName = arg; return true; } else { return false; } } } @Override protected boolean execute(Environment env) { if (fileName == null) { return false; } File f = new File(fileName); String fn = f.getName().toUpperCase(); if (!f.canRead()) { System.err.printf("The file \"%s\" either does not exist or cannot be read.\n", f); } if (contentType == null) { contentType = ContentTypeUtilities.guessContentType(f); } if (contentType == null) { System.err.printf("The file \"%s\" is an unrecognized file type.", f); } else { try { ResourceWebService rsvc = env.obtainWebService(ResourceWebService.class); ResourceMetadata rmeta = null; if (resourceId == null) { Feeder feeder = null; FeederInspection feederInspection = null; WorkOrder workOrder = null; Pole pole = null; PoleInspection poleInspection = null; TransmissionLine line = null; TransmissionLineInspection tlinsp = null; TransmissionStructure structure = null; TransmissionStructureInspection tsinsp = null; if (feederId != null) { // Search for the feeder; FeederSearchParams params = new FeederSearchParams(); params.setFeederNumber(feederId); List<Feeder> list = env.obtainWebService(FeederWebService.class).search(env.obtainAccessToken(), params); feeder = CollectionsUtilities.firstItemIn(list); if (feeder == null) { System.err.printf("No feeder %s found\n", feederId); return true; } } if (lineId != null) { // Search for the line; TransmissionLineSearchParams params = new TransmissionLineSearchParams(); params.setLineNumber(lineId); line = CollectionsUtilities.firstItemIn(env.obtainWebService(TransmissionLineWebService.class).search(env.obtainAccessToken(), params)); if (line == null) { System.err.printf("No Transmission Structure %s found\n", lineId); return true; } } if (orderNum != null) { workOrder = env.obtainWebService(WorkOrderWebService.class).retrieveById(env.obtainAccessToken(), orderNum); if (workOrder == null) { System.err.printf("No work order found for order number %s\n", orderNum); return true; } if (workOrder.getSiteIds().isEmpty()) { System.err.printf("The work order %s has no feeders related to it.\n", orderNum); return true; } if (feeder == null || line == null) { if (workOrder.getSiteIds().size() == 1) { feederId = workOrder.getSiteIds().get(0); try { feeder = env.obtainWebService(FeederWebService.class).retrieve(env.obtainAccessToken(), feederId); } catch (ClientResponseFailure ex) { if (ex.getResponse().getStatus() == 404) { feeder = null; } else { throw ex; } } if (feeder == null) { try { line = env.obtainWebService(TransmissionLineWebService.class).retrieve(env.obtainAccessToken(), feederId); } catch (ClientResponseFailure ex) { if (ex.getResponse().getStatus() == 404) { line = null; } else { throw ex; } } if (line == null) { System.err.printf("No feeder or line found %s found\n", feederId); return true; } } } else { if (feeder != null) { // We know our feeder, so we're ok } else { System.err.printf("There are multiple feeders or lines associated with work order %s. No idea which one to assign the resource to.\n", orderNum); return true; } } } else { boolean found = false; for (String id : workOrder.getSiteIds()) { if (feeder.getId().equals(id)) { found = true; break; } } if (!found) { System.err.printf("The work order %s is not related to the feeder %s.\n", orderNum, feeder.getFeederNumber()); return true; } } SiteInspectionSearchParams params = new SiteInspectionSearchParams(); params.setOrderNumber(orderNum); if (feeder != null) { params.setSiteId(feeder.getId()); List<FeederInspection> list = env.obtainWebService(FeederInspectionWebService.class).search(env.obtainAccessToken(), params); feederInspection = CollectionsUtilities.firstItemIn(list); } else { params.setSiteId(line.getId()); tlinsp = CollectionsUtilities.firstItemIn(env.obtainWebService(TransmissionLineInspectionWebService.class).search(env.obtainAccessToken(), params)); } } if (fplId != null) { PoleSearchParams params = new PoleSearchParams(); params.setUtilityId(fplId); if (feeder != null) { params.setSiteId(feeder.getId()); } List<Pole> list = env.obtainWebService(PoleWebService.class).search(env.obtainAccessToken(), params); pole = CollectionsUtilities.firstItemIn(list); if (pole == null) { System.err.printf("No pole found for Utility ID %s and Feeder ID %s", fplId, feeder == null ? null : feeder.getFeederNumber()); return true; } } if (struct != null) { TransmissionStructureSearchParams params = new TransmissionStructureSearchParams(); params.setStructureNumber(struct); List<TransmissionStructure> list = env.obtainWebService(TransmissionStructureWebService.class).search(env.obtainAccessToken(), params); if (list.isEmpty()) { System.err.printf("No transmission structure %s found\n", struct); return true; } else if (list.size() == 1) { structure = list.get(0); } else { System.err.printf("Multiple transmission structures %s found\n", struct); return true; } } if (workOrder != null) { if (pole != null) { AssetInspectionSearchParams params = new AssetInspectionSearchParams(); params.setAssetId(pole.getId()); params.setOrderNumber(workOrder.getOrderNumber()); List<PoleInspection> list = env.obtainWebService(PoleInspectionWebService.class).search(env.obtainAccessToken(), params); poleInspection = CollectionsUtilities.firstItemIn(list); } else if (structure != null) { AssetInspectionSearchParams params = new AssetInspectionSearchParams(); params.setAssetId(structure.getId()); params.setOrderNumber(workOrder.getOrderNumber()); List<TransmissionStructureInspection> list = env.obtainWebService(TransmissionStructureInspectionWebService.class).search(env.obtainAccessToken(), params); tsinsp = CollectionsUtilities.firstItemIn(list); } } ResourceSearchParams params = new ResourceSearchParams(); params.setType(resourceType); Class<?> clazz = ResourceTypes.relatedTo(resourceType); if (AssetInspection.class == clazz) { AssetInspection insp = poleInspection; if (insp == null) { insp = tsinsp; } if (insp == null) { System.err.println("Pole or Transmission structure is required for this type of resource."); } params.setAssetId(insp.getAssetId()); params.setAssetInspectionId(insp.getId()); params.setOrderNumber(insp.getOrderNumber()); params.setSiteId(insp.getSiteId()); params.setSiteInspectionId(insp.getSiteInspectionId()); } else if (Feeder.class == clazz) { if (feeder == null) { System.err.println("Feeder is required for this type of resource."); return true; } else { params.setSiteId(feeder.getId()); } } else if (FeederInspection.class == clazz) { if (feederInspection == null) { System.err.println("Feeder inspection is required for this type of resource."); return true; } else { params.setOrderNumber(feederInspection.getOrderNumber()); params.setSiteId(feederInspection.getSiteId()); params.setSiteInspectionId(feederInspection.getId()); } } else if (Pole.class == clazz) { if (pole == null) { System.err.println("Pole is required for this type of resource."); return true; } else { params.setAssetId(pole.getId()); params.setSiteId(pole.getSiteId()); } } else if (PoleInspection.class == clazz) { if (poleInspection == null) { System.err.println("Pole inspection is required for this type of resource."); return true; } else { params.setAssetId(poleInspection.getAssetId()); params.setAssetInspectionId(poleInspection.getId()); params.setOrderNumber(poleInspection.getOrderNumber()); params.setSiteId(poleInspection.getSiteId()); params.setSiteInspectionId(poleInspection.getSiteInspectionId()); } } else if (TransmissionLine.class == clazz) { if (line == null) { System.err.println("Transmission line required for this type of resource."); } else { params.setSiteId(line.getId()); params.setSiteInspectionId(tlinsp.getId()); params.setOrderNumber(tlinsp.getOrderNumber()); } } else if (TransmissionStructure.class == clazz) { if (structure == null) { System.err.print("Transmission structure required for this type of resource."); } else { params.setAssetId(structure.getId()); params.setAssetInspectionId(tsinsp.getId()); params.setOrderNumber(tsinsp.getOrderNumber()); params.setSiteId(structure.getSiteId()); params.setSiteInspectionId(tsinsp.getSiteInspectionId()); } } // See if the resource already exist for the data objects. if (params.hasCriteria()) { // Look for the resource metadata rmeta = CollectionsUtilities.firstItemIn(rsvc.search(env.obtainAccessToken(), params)); if (rmeta == null) { // None found, create it. rmeta = new ResourceMetadata(); rmeta.setOrderNumber(params.getOrderNumber()); rmeta.setAssetId(params.getAssetId()); rmeta.setAssetInspectionId(params.getAssetInspectionId()); rmeta.setSiteId(params.getSiteId()); rmeta.setSiteInspectionId(params.getSiteInspectionId()); rmeta.setType(resourceType); rmeta.setContentType(contentType); rmeta.setName(f.getName()); rmeta.setResourceId(UUID.randomUUID().toString()); rmeta.setStatus(ResourceStatus.QueuedForUpload); rmeta.setTimestamp(ZonedDateTime.now()); rsvc.insertResourceMetadata(env.obtainAccessToken(), rmeta); } } else { System.err.println("No search parameters for finding a correct resource."); return true; } } else { rmeta = rsvc.retrieve(env.obtainAccessToken(), resourceId); if (rmeta == null) { System.err.printf("No resource with ID \"%s\" found in data store.\n", resourceId); return true; } } if (contentType.startsWith("image/") && ImageUtilities.ImageType.fromContentType(rmeta.getContentType()) != null) { ImageInfo info = Imaging.getImageInfo(f); TiffImageMetadata exif; ImageMetadata metadata = Imaging.getMetadata(f); if (metadata instanceof JpegImageMetadata) { exif = ((JpegImageMetadata)metadata).getExif(); } else if (metadata instanceof TiffImageMetadata) { exif = (TiffImageMetadata)metadata; } else { exif = null; } rmeta.setLocation(ImageUtilities.getLocation(exif)); rmeta.setSize(ImageUtilities.getSize(info)); } HttpClientUtilities.postFile(env, rmeta.getResourceId(), contentType, f); if (resourceId == null) { if (ResourceTypes.IdentifiedComponents.equals(rmeta.getType())) { rmeta.setStatus(ResourceStatus.Processed); } else { // If this is a new upload rather than a re-upload, switch status to Released. rmeta.setStatus(ResourceStatus.Released); } rsvc.updateResourceMetadata(env.obtainAccessToken(), rmeta); } if ( contentType.startsWith("image/") && ImageUtilities.ImageType.fromContentType(rmeta.getContentType()) != null && rmeta.getSize() != null && rmeta.getSize().getWidth() > SCALE_WIDTH ) { ResourceMetadata rm2 = rsvc.scale(env.obtainAccessToken(), rmeta.getResourceId(), SCALE_IMAGE_REQ); rm2.setType(ResourceTypes.ThumbNail); rsvc.updateResourceMetadata(env.obtainAccessToken(), rm2); } System.out.printf("The file \"%s\" of type %s has been uploaded to %s with resourceId %s\n", f, resourceType, feederId, rmeta.getResourceId()); } catch (ImageReadException | IOException | URISyntaxException ex) { ex.printStackTrace(System.err); } } return true; } @Override public boolean canProcess(String command) { return COMMAND.equals(command); } @Override public void printHelp(PrintStream output) { output.println(HELP); output.println("\t\tResource Types:"); for (ResourceType type : ResourceTypes.values()) { output.printf("\t\t\t%s\n", type.getValue()); } } }
9a20458cfb54dfaaf171737929aceaa5dc22b009
bad707d31431ef79ff9df261ecbf73295224c716
/src/test/java/com/lms/admin/web/rest/AuditResourceIT.java
47dec4a264050806a3cf0df3d59047dddf5cca36
[]
no_license
talaghzi/LMS-ADMIN
697a6e066afe256f7054c8940a5363dd94417fd6
f97d57a874db110ad1e3b11e8e44712e8d3326c3
refs/heads/master
2022-12-21T21:46:07.684601
2019-10-27T10:36:15
2019-10-27T10:36:15
217,839,312
0
0
null
2022-12-16T04:40:44
2019-10-27T10:36:07
Java
UTF-8
Java
false
false
6,733
java
package com.lms.admin.web.rest; import com.lms.admin.LmsadminApp; import io.github.jhipster.config.JHipsterProperties; import com.lms.admin.config.audit.AuditEventConverter; import com.lms.admin.domain.PersistentAuditEvent; import com.lms.admin.repository.PersistenceAuditEventRepository; import com.lms.admin.service.AuditEventService; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.MockitoAnnotations; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.data.web.PageableHandlerMethodArgumentResolver; import org.springframework.format.support.FormattingConversionService; import org.springframework.http.MediaType; import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.setup.MockMvcBuilders; import org.springframework.transaction.annotation.Transactional; import java.time.Instant; import static org.assertj.core.api.AssertionsForClassTypes.assertThat; import static org.hamcrest.Matchers.hasItem; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*; /** * Integration tests for the {@link AuditResource} REST controller. */ @SpringBootTest(classes = LmsadminApp.class) @Transactional public class AuditResourceIT { private static final String SAMPLE_PRINCIPAL = "SAMPLE_PRINCIPAL"; private static final String SAMPLE_TYPE = "SAMPLE_TYPE"; private static final Instant SAMPLE_TIMESTAMP = Instant.parse("2015-08-04T10:11:30Z"); private static final long SECONDS_PER_DAY = 60 * 60 * 24; @Autowired private PersistenceAuditEventRepository auditEventRepository; @Autowired private AuditEventConverter auditEventConverter; @Autowired private JHipsterProperties jhipsterProperties; @Autowired private MappingJackson2HttpMessageConverter jacksonMessageConverter; @Autowired @Qualifier("mvcConversionService") private FormattingConversionService formattingConversionService; @Autowired private PageableHandlerMethodArgumentResolver pageableArgumentResolver; private PersistentAuditEvent auditEvent; private MockMvc restAuditMockMvc; @BeforeEach public void setup() { MockitoAnnotations.initMocks(this); AuditEventService auditEventService = new AuditEventService(auditEventRepository, auditEventConverter, jhipsterProperties); AuditResource auditResource = new AuditResource(auditEventService); this.restAuditMockMvc = MockMvcBuilders.standaloneSetup(auditResource) .setCustomArgumentResolvers(pageableArgumentResolver) .setConversionService(formattingConversionService) .setMessageConverters(jacksonMessageConverter).build(); } @BeforeEach public void initTest() { auditEventRepository.deleteAll(); auditEvent = new PersistentAuditEvent(); auditEvent.setAuditEventType(SAMPLE_TYPE); auditEvent.setPrincipal(SAMPLE_PRINCIPAL); auditEvent.setAuditEventDate(SAMPLE_TIMESTAMP); } @Test public void getAllAudits() throws Exception { // Initialize the database auditEventRepository.save(auditEvent); // Get all the audits restAuditMockMvc.perform(get("/management/audits")) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)) .andExpect(jsonPath("$.[*].principal").value(hasItem(SAMPLE_PRINCIPAL))); } @Test public void getAudit() throws Exception { // Initialize the database auditEventRepository.save(auditEvent); // Get the audit restAuditMockMvc.perform(get("/management/audits/{id}", auditEvent.getId())) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)) .andExpect(jsonPath("$.principal").value(SAMPLE_PRINCIPAL)); } @Test public void getAuditsByDate() throws Exception { // Initialize the database auditEventRepository.save(auditEvent); // Generate dates for selecting audits by date, making sure the period will contain the audit String fromDate = SAMPLE_TIMESTAMP.minusSeconds(SECONDS_PER_DAY).toString().substring(0, 10); String toDate = SAMPLE_TIMESTAMP.plusSeconds(SECONDS_PER_DAY).toString().substring(0, 10); // Get the audit restAuditMockMvc.perform(get("/management/audits?fromDate="+fromDate+"&toDate="+toDate)) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)) .andExpect(jsonPath("$.[*].principal").value(hasItem(SAMPLE_PRINCIPAL))); } @Test public void getNonExistingAuditsByDate() throws Exception { // Initialize the database auditEventRepository.save(auditEvent); // Generate dates for selecting audits by date, making sure the period will not contain the sample audit String fromDate = SAMPLE_TIMESTAMP.minusSeconds(2*SECONDS_PER_DAY).toString().substring(0, 10); String toDate = SAMPLE_TIMESTAMP.minusSeconds(SECONDS_PER_DAY).toString().substring(0, 10); // Query audits but expect no results restAuditMockMvc.perform(get("/management/audits?fromDate=" + fromDate + "&toDate=" + toDate)) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)) .andExpect(header().string("X-Total-Count", "0")); } @Test public void getNonExistingAudit() throws Exception { // Get the audit restAuditMockMvc.perform(get("/management/audits/{id}", Long.MAX_VALUE)) .andExpect(status().isNotFound()); } @Test @Transactional public void testPersistentAuditEventEquals() throws Exception { TestUtil.equalsVerifier(PersistentAuditEvent.class); PersistentAuditEvent auditEvent1 = new PersistentAuditEvent(); auditEvent1.setId(1L); PersistentAuditEvent auditEvent2 = new PersistentAuditEvent(); auditEvent2.setId(auditEvent1.getId()); assertThat(auditEvent1).isEqualTo(auditEvent2); auditEvent2.setId(2L); assertThat(auditEvent1).isNotEqualTo(auditEvent2); auditEvent1.setId(null); assertThat(auditEvent1).isNotEqualTo(auditEvent2); } }
dd7637a7d5fef2613fe51bbaf9ba0faef95fc631
daa91e143037b529c91e9389429e37100e9e9b30
/src/main/java/com/flow/custom/customcmd/BackTaskCmd.java
73d7446f30e2409624503853b0dd636c0b899fd8
[]
no_license
AndiHappy/flow
4ed3843915ec35b6c301062c11b3ffedb9420f04
c538d2a9052a67de8933ccecd4e491f13e419bb4
refs/heads/master
2021-04-12T10:01:36.471879
2018-04-20T02:19:50
2018-04-20T02:19:50
126,192,630
0
0
null
null
null
null
UTF-8
Java
false
false
4,462
java
package com.flow.custom.customcmd; import java.util.List; import java.util.Map; import org.activiti.engine.ActivitiException; import org.activiti.engine.ActivitiObjectNotFoundException; import org.activiti.engine.impl.bpmn.behavior.GatewayActivityBehavior; import org.activiti.engine.impl.bpmn.behavior.NoneStartEventActivityBehavior; import org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior; import org.activiti.engine.impl.interceptor.Command; import org.activiti.engine.impl.interceptor.CommandContext; import org.activiti.engine.impl.persistence.entity.ExecutionEntity; import org.activiti.engine.impl.persistence.entity.TaskEntity; import org.activiti.engine.impl.pvm.PvmTransition; import org.activiti.engine.impl.pvm.process.ActivityImpl; import org.activiti.engine.impl.pvm.process.ProcessDefinitionImpl; import org.activiti.engine.impl.pvm.runtime.AtomicOperation; import org.activiti.engine.task.Task; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.flow.util.exception.BaseIllegalException; /** * @author zhailz * * * @version 2018年3月21日 下午4:20:35 */ public class BackTaskCmd extends BaseCmd implements Command<List<TaskEntity>> { private Logger log = LoggerFactory.getLogger("BackTaskCmd"); private String taskId; private Map<String, Object> variables; private boolean localScope; public static final String DELETE_REASON_DELETED = "back_action"; public BackTaskCmd(String taskId, Map<String, Object> variables, boolean localScope) { this.taskId = taskId; this.variables = variables; this.localScope = localScope; } /* * (non-Javadoc) * * @see * org.activiti.engine.impl.interceptor.Command#execute(org.activiti.engine. * impl.interceptor.CommandContext) */ @Override public List<TaskEntity> execute(CommandContext commandContext) { TaskEntity task = commandContext.getTaskEntityManager().findTaskById(taskId); if (task == null) { throw new ActivitiObjectNotFoundException("Cannot find task with id " + taskId, Task.class); } if (task.isSuspended()) { throw new ActivitiException(getSuspendedTaskException()); } log.info("find current task taskId:{},taskKey:{}", task.getId(), task.getName()); // 找到back的上一级的task String definitionKey = task.getTaskDefinitionKey(); ProcessDefinitionImpl processDefinition = task.getExecution().getProcessDefinition(); ActivityImpl activiti = task.getExecution().getProcessDefinition().findActivity(definitionKey); if (activiti != null) { ActivityImpl back = getBackActiviti(activiti, processDefinition); if (back != null) { log.info("find back activiti:{}", back.toString()); ExecutionEntity execution = task.getExecution(); complete(task, DELETE_REASON_DELETED,this.getVariables(), this.isLocalScope()); execution.setActivity(back); execution.performOperation(AtomicOperation.ACTIVITY_START); List<TaskEntity> tasks = task.getExecution().getTasks(); return tasks; } } return null; } private ActivityImpl getBackActiviti(ActivityImpl currentActiviti, ProcessDefinitionImpl processDefinition) { List<PvmTransition> incomings = currentActiviti.getIncomingTransitions(); if (incomings != null && incomings.size() > 1) { throw BaseIllegalException.tooManyBackActivities; } if (incomings != null && !incomings.isEmpty()) { ActivityImpl sources = (ActivityImpl) incomings.get(0).getSource(); if (sources.getActivityBehavior() instanceof UserTaskActivityBehavior || sources.getActivityBehavior() instanceof NoneStartEventActivityBehavior) { return sources; } // 如果是网关,回退的过程中碰到是网关的情况下,这中情况下也不能回退 if (sources.getActivityBehavior() instanceof GatewayActivityBehavior) { throw BaseIllegalException.backActivitiIsWrongType; } } else { throw BaseIllegalException.noBackActivitiIs; } return null; } protected String getSuspendedTaskException() { return "Cannot execute operation: task is suspended"; } public String getTaskId() { return taskId; } public void setTaskId(String taskId) { this.taskId = taskId; } public Map<String, Object> getVariables() { return variables; } public void setVariables(Map<String, Object> variables) { this.variables = variables; } public boolean isLocalScope() { return localScope; } public void setLocalScope(boolean localScope) { this.localScope = localScope; } }
b1e08c2d92c6d6af7c46a396ad93737799b2f040
d5105aa5420e988b2d8663a102d1ef58048436fb
/src/dp/Solution.java
ddc6c639b6b75bef27648904a4e8f220924c050d
[]
no_license
fsan1999/LeetCode
6f0f86a8de117693e4d7e332e25c6e2ee8407f39
acbc4ae6a71f4e24972a89a03b67a47500633274
refs/heads/main
2023-05-07T16:35:15.974405
2021-05-29T03:44:05
2021-05-29T03:44:05
371,054,662
0
0
null
null
null
null
UTF-8
Java
false
false
19,231
java
package dp; import java.util.Arrays; import java.util.List; /** * @author : Fr * @date : 2021/1/21 11:44 */ public class Solution { public int fib(int n) { int[] memo = new int[n + 1]; memo[1] = 1; for (int i = 2; i <= n; i++) { memo[i] = memo[i - 1] + memo[i]; } return memo[n] % 1000000007; } public int minimumTotal(List<List<Integer>> triangle) { if (triangle == null || triangle.size() == 0) { return 0; } int[][] minValue = new int[triangle.size()][triangle.get(triangle.size() - 1).size()]; for (int i = 0; i < minValue[0].length; i++) { minValue[minValue.length - 1][i] = triangle.get(minValue.length - 1).get(i); } for (int i = minValue.length - 2; i >= 0; i--) { for (int j = 0; j <= i; j++) { minValue[i][j] = triangle.get(i).get(j) + Math.min(minValue[i + 1][j], minValue[i + 1][j + 1]); } } return minValue[0][0]; } private int getMinValue(int i, int j, int[][] minValue, List<List<Integer>> triangle) { if (minValue[i][j] == Integer.MAX_VALUE) { minValue[i][j] = triangle.get(i).get(j) + Math.min(getMinValue(i + 1, j, minValue, triangle), getMinValue(i + 1, j + 1, minValue, triangle)); } return minValue[i][j]; } private int minimumTotalCal(int index, List<List<Integer>> triangle) { if (triangle == null || triangle.size() == 0) { return 0; } else { List<List<Integer>> next = triangle.subList(1, triangle.size()); int a = triangle.get(0).get(index) + minimumTotalCal(index, next); int b = triangle.get(0).get(index) + minimumTotalCal(index + 1, next); return Math.min(a, b); } } public int minPathSum(int[][] grid) { if (grid == null || grid.length == 0) { return 0; } int[][] minMap = new int[grid.length][grid[0].length]; for (int[] ints : minMap) { Arrays.fill(ints, -1); } minMap[0][0] = grid[0][0]; minMap[grid.length - 1][grid.length - 1] = grid[grid.length - 1][grid.length - 1]; return getMinPath(grid.length - 1, grid[0].length - 1, grid, minMap); } private int getMinPath(int i, int j, int[][] grid, int[][] minMap) { if (i == 0 && j == 0) { return grid[0][0]; } int a = Integer.MAX_VALUE; int b = Integer.MAX_VALUE; if (i - 1 >= 0) { if (minMap[i - 1][j] < 0) { minMap[i - 1][j] = getMinPath(i - 1, j, grid, minMap); } a = minMap[i - 1][j]; } if (j - 1 >= 0) { if (minMap[i][j - 1] < 0) { minMap[i][j - 1] = getMinPath(i, j - 1, grid, minMap); } b = minMap[i][j - 1]; } return grid[i][j] + Math.min(a, b); } public int integerBreak(int n) { int[] maxValue = new int[n + 1]; maxValue[1] = 1; for (int i = 2; i < n + 1; i++) { for (int j = 1; j < i; j++) { maxValue[i] = max3(maxValue[i], j * (i - j), j * maxValue[i - j]); } } return maxValue[n]; } private int max3(int a, int b, int c) { return Math.max(a, Math.max(b, c)); } public int numSquares(int n) { int[] pathValue = new int[n + 1]; pathValue[1] = 1; for (int i = 1; i < n + 1; i++) { pathValue[i] = Integer.MAX_VALUE; for (int j = 1; i - j * j >= 0; j++) { pathValue[i] = Math.min(pathValue[i], pathValue[i - j * j] + 1); } } return pathValue[n]; } public int numDecodings(String s) { if (s.charAt(0) == '0') { return 0; } //长度为n时,的排列组合种类 int[] dp = new int[s.length() + 1]; dp[0] = 1; dp[1] = 1; if (s.length() == 1) { return dp[1]; } for (int i = 2; i <= s.length(); i++) { //得到当前数; int num = Integer.parseInt(String.valueOf(s.charAt(i - 1))); //得到当前数的前一个数 int nums2 = Integer.parseInt(String.valueOf(s.charAt(i - 2))); if (nums2 + num == 0 || (num == 0 && nums2 > 2)) { return 0; } else if (num == 0 || nums2 == 0) { dp[i] = num == 0 ? dp[i - 2] : dp[i - 1]; } else { dp[i] = nums2 * 10 + num > 26 ? dp[i - 1] : dp[i - 2] + dp[i - 1]; } } return dp[s.length()]; } public int uniquePaths(int m, int n) { int[][] step = new int[m][n]; // step[m-1][n-1] = 0; Arrays.fill(step[m-1],1); for (int i = 0; i < m; i++) { step[i][n-1] = 1; } for (int i = m-2; i >=0 ; i--) { for (int j = n-2; j >=0; j--) { step[i][j] = step[i+1][j]+step[i][j+1]; } } return step[0][0]; } public int uniquePathsWithObstacles(int[][] obstacleGrid) { int m = obstacleGrid.length+1,n=obstacleGrid[0].length+1; int[][] step = new int[m][n]; if (obstacleGrid[m-2][n-2]==1){ return 0; } for (int i = m-2; i >=0 ; i--) { for (int j = n-2; j >=0; j--) { if (i==m-2 && j==n-2){ continue; } if (obstacleGrid[i][j]==1){ step[i][j] = 0; }else { step[i][j] = step[i+1][j]+step[i][j+1]; } } } return step[0][0]; } public int rob(int[] nums) { if (nums==null || nums.length==0){ return 0; } int[] memo = new int[nums.length]; // Arrays.fill(memo,-1); //这里的nums[j]是为了将当前值设置为之前的,后面的相对于dp[x](x>=i) memo[nums.length-1] = nums[nums.length-1]; for (int i = nums.length-2; i >=0 ; i--) { for (int j = i; j < nums.length; j++) { memo[i] = Math.max(memo[i],nums[j]+(j+2<nums.length?memo[j+2]:0)); } } return memo[0]; } /** * 考虑 nums从index起 * @param nums 数组 * @param index 索引 * @return 价值 */ private int tryRob(int[] nums, int index,int[] memo) { if (index>=nums.length){ return 0; } if (memo[index]!=-1){ return memo[index]; } for (int i = index; i < nums.length; i++) { memo[index] = Math.max( memo[index],nums[i]+tryRob(nums,i+2,memo)); } return memo[index]; } public int rob2(int[] nums) { if (nums==null || nums.length==0){ return 0; } int[] dp1 = new int[nums.length-1],dp2 = new int[nums.length-1]; // int[] dp1 = Arrays.copyOfRange(nums, 1, nums.length); dp1[dp1.length-1] = nums[nums.length-1]; // int[] dp2 = Arrays.copyOfRange(nums, 0, nums.length-1); dp2[dp2.length-1] = nums[nums.length-2]; for (int i = dp1.length-2; i >=0; i--) { for (int j = i; j < dp1.length; j++) { dp1[i] = Math.max(dp1[i],nums[i+1]+(j+2<dp1.length?dp1[j+2]:0)); } } for (int i = dp2.length-2; i >=0; i--) { for (int j = i; j < dp2.length; j++) { dp2[i] = Math.max(dp2[i],nums[i]+(j+2<dp2.length?dp2[j+2]:0)); } } return Math.max(dp1[0],dp2[0]); } public int lengthOfLIS(int[] nums) { if (nums==null ||nums.length==0){ return 0; } int[] len = new int[nums.length]; int max = 0; Arrays.fill(len,1); for (int i = 1; i < nums.length; i++) { for (int j = 0; j<i; j++) { if (nums[i]>nums[j]){ len[i] = Math.max(len[i],1+len[j]); max = Math.max(max,len[i]); } } } return max; } public int wiggleMaxLength(int[] nums) { if (nums == null||nums.length<=2) { return 0; } int[] rise = new int[nums.length]; Arrays.fill(rise,1); int max = 2; int[] decline = new int[nums.length]; Arrays.fill(decline,1); for (int i = 1; i < nums.length; i++) { for (int j = 0; j < i; j++) { if (nums[i]>nums[j]){ rise[i] = Math.max(rise[i],1+decline[j]); max = Math.max(max,rise[i]); } if (nums[i]<nums[j]){ decline[i] = Math.max(decline[i],1+rise[j]); max = Math.max(max,decline[i]); } } } return max; } public int longestCommonSubsequence(String text1, String text2) { if (text1==null||text2==null||text1.length()==0||text2.length()==0){ return 0; } int[][] lens = new int[text1.length()][text2.length()]; for (int[] len :lens){ Arrays.fill(len,-1); } return lcs(text1,text2,text1.length()-1,text2.length()-1,lens); } private int lcs(String text1, String text2, int m, int n, int[][] lens) { if (m<0||n<0){ return 0; } if (lens[m][n]!=-1){ return lens[m][n]; } if (text1.charAt(m)==text2.charAt(n)){ lens[m][n] = 1; lens[m][n] += lcs(text1, text2, m-1, n-1, lens); }else { lens[m][n] = 0; lens[m][n] += Math.max(lcs(text1, text2, m-1, n, lens),lcs(text1, text2, m, n-1, lens)); } return lens[m][n]; } public boolean canPartition(int[] nums) { if (nums.length<2){ return false; } int sum = 0; for (int num : nums) { sum += num; } if (sum%2!=0){ return false; } int[][] dp = new int[nums.length][sum / 2]; return tryPartition(nums,nums.length-1,sum/2,dp); } private boolean tryPartition(int[] nums, int index, int size,int[][] dp) { if (size==0){ return true; } if (size<0||index<0){ return false; } if (dp[index][size]==0){ if (tryPartition(nums, index-1, size,dp)||tryPartition(nums, index-1, size-nums[index],dp)){ dp[index][size] = 1; }else { dp[index][size] = -1; } } return dp[index][size]==1; } int value = Integer.MAX_VALUE; public int coinChange(int[] coins, int amount) { if (amount==0){ return 0; } Arrays.sort(coins); tryFill(amount,coins,coins.length-1,0); return value ==Integer.MAX_VALUE?-1: value; } private void tryFill(int amount, int[] coins, int index,int count) { if (amount==0){ value = Math.min(value,count); return; } if (index<0 ){ return; } int countStep = amount / coins[index]; while (countStep>=0 && count+countStep< value){ tryFill(amount - (coins[index]*countStep), coins, index-1,count+ countStep); countStep--; } } public int combinationSum4(int[] nums, int target) { if (target == 0) { return 1; } int res = 0; for (int num : nums) { if (target >= num) { res += combinationSum4(nums, target - num); } } return res; } public String longestPalindrome(String s) { int n = s.length(); String sb = ""; boolean[][] dp = new boolean[n][n]; for (int i = 0; i < n; i++) { dp[i][i] = true; } for (int l = 0; l < n; ++l) { for (int i = 0; i + l < n; ++i) { int j = i + l; if (l == 0) { dp[i][j] = true; } else { boolean b = s.charAt(i) == s.charAt(j); if (l == 1) { dp[i][j] = b; } else { dp[i][j] = (b && dp[i + 1][j - 1]); } } if (dp[i][j] && l + 1 > sb.length()) { sb = s.substring(i, i + l + 1); } } } return sb; } public int maxSubArray(int[] nums) { int pre = 0, maxAns = nums[0]; for (int x : nums) { pre = Math.max(pre + x, x); maxAns = Math.max(maxAns, pre); } return maxAns; } public int findMaxForm(String[] strs, int m, int n) { int[][][] dp = new int[strs.length][m + 1][n + 1]; int[] freq = getMAndN(strs[0]); for (int i = 0; i < m+1; i++) { for (int j = 0; j < n + 1; j++) { if (freq[0]<=i && freq[1]<=j){ dp[0][i][j] = 1; } } } for (int k = 1; k < strs.length; k++) { for (int i = 0; i <= m; i++) { for (int j = 0; j <= n; j++) { freq = getMAndN(strs[k]); dp[k][i][j] = dp[k-1][i][j]; if (freq[0]<=i && freq[1]<=j){ dp[k][i][j] = Math.max(dp[k][i][j],dp[k-1][i-freq[0]][j-freq[1]]+1); } } } } return dp[strs.length-1][m][n]; } private int[] getMAndN(String str) { int[] response = new int[2]; for (int i = 0; i < str.length(); i++) { response[str.charAt(i)-'0']++; } return response; } public int maxTurbulenceSize(int[] arr) { if (arr.length==0||arr.length==1||arr.length==2){ return arr.length; } int[] dpUp = new int[arr.length + 1]; int[] dpDown = new int[arr.length + 1]; Arrays.fill(dpUp,1); Arrays.fill(dpDown,1); for (int i = 1; i <= arr.length; i++) { dpDown[i]=dpUp[i] =1; if (arr[i]>arr[i-1]){ dpUp[i] = dpDown[i-1]+1; } else if (arr[i]<arr[i-1]){ dpDown[i] = dpUp[i-1]+1; } } int ret = 1; for (int i = 1; i < arr.length; i++) { ret = Math.max(ret, dpUp[i]); ret = Math.max(ret, dpDown[i]); } return ret; } public int cuttingRope(int n) { int[] dp = new int[n + 1]; dp[2] = 1; for(int i = 3; i < n + 1; i++){ for(int j = 2; j < i; j++){ dp[i] = Math.max(dp[i], Math.max(j * (i - j), j * dp[i - j])); } } return dp[n]; } public int maxValue(int[][] grid) { int[][] dp = new int[grid.length][grid[0].length]; dp[0][0] = grid[0][0]; for (int i = 1; i < grid[0].length; i++) { dp[0][i] = grid[0][i]+dp[0][i-1]; } for (int i = 1; i < grid.length; i++) { dp[i][0] = grid[i][0]+dp[i-1][0]; } for (int i = 1; i < grid.length; i++) { for (int j = 1; j < grid[0].length; j++) { dp[i][j] = grid[i][j]+Math.max(dp[i-1][j],dp[i][j-1]); } } return dp[grid.length-1][grid[0].length-1]; } public int waysToStep(int n) { int[] dp = new int[n+1]; dp[1] = 1; dp[2] = 2; dp[3] = 4; for(int i=4;i<=n;i++){ dp[i] = (dp[i-3]+dp[i-2]+dp[i-1])%1000000007; } return dp[n]; } public int massage(int[] nums) { if (nums == null || nums.length == 0) { return 0; } int length = nums.length; if (length == 1) { return nums[0]; } int[] dp = new int[length]; dp[0] = nums[0]; dp[1] = Math.max(nums[0], nums[1]); for (int i = 2; i < length; i++) { dp[i] = Math.max(dp[i - 2] + nums[i], dp[i - 1]); } return dp[length - 1]; } public int minCostClimbingStairs(int[] cost) { int[] dp = new int[cost.length+1]; if (cost.length<3){ return 0; } dp[2] = Math.min(cost[0],cost[1]); for (int i = 3; i <= cost.length; i++) { dp[i] = Math.min(dp[i-2]+cost[i-2],dp[i-1]+cost[i-1]); } return dp[cost.length]; } public boolean divisorGame(int N) { boolean[] f = new boolean[N + 5]; f[1] = false; f[2] = true; for (int i = 3; i <= N; ++i) { for (int j = 1; j < i; ++j) { if ((i % j) == 0 && !f[i - j]) { f[i] = true; break; } } } return f[N]; } public boolean checkSubarraySum(int[] nums, int k) { int[] dp = new int[nums.length+1]; dp[0] = nums[0]; for (int i = 0; i < nums.length; i++) { dp[i + 1] = dp[i] + nums[i]; } for (int i = 0; i < nums.length-1; i++) { for (int j = i+1; j < nums.length; j++) { int sum = dp[j + 1] - dp[i]; if(sum ==k||(k!=0 && sum %k==0)){ return true; } } } return false; } /** * 这里遍历应该采用二分遍历,或者轻微减枝 * @param height * @param weight * @return */ public int bestSeqAtIndex(int[] height, int[] weight) { int len = height.length; int[][] person = new int[len][2]; for (int i = 0; i < len; ++i) { person[i] = new int[]{height[i], weight[i]}; } Arrays.sort(person, (a, b) -> a[0] == b[0] ? b[0] - a[0] : a[0] - b[0]); int[] dp = new int[len]; dp[len-1] = 1; int res = 1; for (int i = len-2; i >= 0; i--) { int max_val = 0, base_weight = person[i][1]; for (int j = i+1; j < len ; j++) { if (dp[j]<=max_val){ continue; } if(max_val>=len-j){ break; } if (person[i][0]<person[j][0]&&base_weight < person[j][1]) { max_val = Math.max(max_val, dp[j]); } } dp[i] = max_val + 1; res = Math.max(res, dp[i]); } return res; } public int kConcatenationMaxSum(int[] arr, int k) { long pre = 0; long ans = 0; while (k>0){ for (int num:arr){ pre = Math.max((num+pre),num); ans = Math.max(pre,ans); } if(ans<0){ } k--; } return (int)(ans%1000000007); } }
251153eea7b15fa4c00a1e7bd0eeb04b5c74d92e
c37a0667541185ba5bd39c9f1db8788fb92b0978
/app/src/main/java/hans/singh/com/singh_practicalexam2/Student.java
e0ded41a15651d9cd95e91aec1999e0c53516f5f
[]
no_license
hansgsingh/Singh_PracticalExam2
e63ca87923207cdce661c4bf1cba5133945a289a
6d6cff7eb68b6aeeb6619b0f116d5dec951e4517
refs/heads/master
2020-04-09T02:11:47.655557
2018-12-01T10:07:30
2018-12-01T10:07:30
159,931,827
0
0
null
null
null
null
UTF-8
Java
false
false
655
java
package hans.singh.com.singh_practicalexam2; public class Student { String fname, lname; double ave; public Student(String fname, String lname, double ave) { this.fname = fname; this.lname = lname; this.ave = ave; } public String getFname() { return fname; } public void setFname(String fname) { this.fname = fname; } public String getLname() { return lname; } public void setLname(String lname) { this.lname = lname; } public double getAve() { return ave; } public void setAve(double ave) { this.ave = ave; } }
7d6d0a0e741e8b525d342a0580de422f2139011a
fba0144e3212b6d8eeab9724a2dbe863321f3ea1
/CaseritaBusiness/src/cl/helper/ProcesaOrdenNoFacturadaHelper.java
d057dc98f76cdf7a715502c4a4bb5b7eb344c6d4
[]
no_license
jcanquil/portafolio
d1268dab393385e082d318f28c91fc896154b72f
4414f89a9c15fe79db80da729f981aced8eac70a
refs/heads/main
2023-06-21T07:24:27.594751
2021-08-03T09:42:15
2021-08-03T09:42:15
392,156,940
0
0
null
null
null
null
UTF-8
Java
false
false
4,228
java
package cl.caserita.helper; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; import cl.caserita.dao.base.DAOFactory; import cl.caserita.dao.iface.CamtraDAO; import cl.caserita.dao.iface.ClmcliDAO; import cl.caserita.dao.iface.ProcedimientoDAO; import cl.caserita.dao.iface.RutservDAO; import cl.caserita.dao.iface.VecmarDAO; import cl.caserita.dao.iface.VedmarDAO; import cl.caserita.dto.ClmcliDTO; import cl.caserita.dto.RutservDTO; import cl.caserita.dto.VecmarDTO; import cl.caserita.wms.out.helper.IntegracionConfirCamionHelper; public class ProcesaOrdenNoFacturadaHelper { public static void main(String []args){ //IntegracionConfirCamionHelper helper = new IntegracionConfirCamionHelper(); //helper.procesaConfirmaCamion2("/home2/ftp/in/SHIP_LOAD_50153_1919.xml", "CAMION", "SHIP_LOAD_50153_1919.xml"); DAOFactory dao = DAOFactory.getInstance(); VecmarDAO vecmar = dao.getVecmarDAO(); CamtraDAO camtra = dao.getCamtraDAO(); //camtra.actualizaEstadoPago(2, 21, 17120204, 20161011); //vecmar.actualizaSwitchVecmar(2, 21, 20161011, 17120204,0); RutservDAO rutservDAO = dao.getRutServDAO(); RutservDTO rutservDTO = rutservDAO.recuperaEndPointServlet("FACTUR"); ProcedimientoDAO proce = dao.getProcedimientoDAO(); VedmarDAO vedmar = dao.getVedmarDAO(); //VecmarDAO vecmar = dao.getVecmarDAO(); //VedmarDTO vedmarDTO = vedmar.obtenerDatosVedmarNoHayCorrelativo(2, 21, 20160922, 17049205, 7); VecmarDTO vecmarDTO = vecmar.obtenerDatosVecmarMer(2, 21, 20170715, 19827985); ClmcliDAO clmcli = dao.getClmcliDAO(); ClmcliDTO dto = clmcli.recuperaCliente(vecmarDTO.getRutProveedor(), vecmarDTO.getDvProveedor()); vecmarDTO.setRazonSocialCliente(dto.getRazonsocial().trim()); IntegracionConfirCamionHelper hel = new IntegracionConfirCamionHelper(); //vedmarDTO.setCantidadArticulo(240); //vedmarDTO.setCantidadFormato(240); String nom = hel.formaString( vecmarDTO); proce.procesaCalculoProcedure(nom); /*VedfaltDAO vedfalt = dao.getVedfaltDAO(); VecmarDTO dto = new VecmarDTO(); dto.setCodigoEmpresa(2); dto.setCodTipoMvto(21); dto.setFechaMvto(20160922); dto.setNumDocumento(17062091); dto.setFechaDocumento(20160923); vedfalt.actualizaDatosVedfalt(dto); */ StringBuffer tmp = new StringBuffer(); String texto = new String(); int numeroProceso=0; try { // Crea la URL con del sitio introducido, ej: http://google.com URL url = new URL(rutservDTO.getEndPoint()+"?empresa="+String.valueOf(vecmarDTO.getCodigoEmpresa())+ "&codTipo="+String.valueOf(vecmarDTO.getCodTipoMvto())+ "&fch="+String.valueOf(vecmarDTO.getFechaDocumento())+"&num="+ String.valueOf(vecmarDTO.getNumDocumento())+ "&cod="+String.valueOf(vecmarDTO.getCodigoDocumento())+"&rut="+ String.valueOf(vecmarDTO.getRutProveedor())+"&dv="+vecmarDTO.getDvProveedor()+"&usuario=CAJABD26&tipo=1&nota=0"); // Lector para la respuesta del servidor BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream())); String str; numeroProceso=numeroProceso+1; while ((str = in.readLine()) != null) { tmp.append(str); } //url.openStream().close(); in.close(); texto = tmp.toString(); }catch (MalformedURLException e) { texto = "<h2>No esta correcta la URL</h2>".toString(); } catch (IOException e) { texto = "<h2>Error: No se encontro el l pagina solicitada".toString(); } vecmar.actualizaSwitchVecmar(vecmarDTO.getCodigoEmpresa(), vecmarDTO.getCodTipoMvto(), vecmarDTO.getFechaMvto(), vecmarDTO.getNumDocumento(),0); vedmar.actualizaSwitchVecmar(vecmarDTO.getCodigoEmpresa(), vecmarDTO.getCodTipoMvto(),vecmarDTO.getFechaMvto(), vecmarDTO.getNumDocumento(),0); camtra.actualizaEstadoPago(vecmarDTO.getCodigoEmpresa(), vecmarDTO.getCodTipoMvto(), vecmarDTO.getFechaMvto(), vecmarDTO.getNumDocumento()); } }
fbdd7a5d902decfb9b6b50aebcf206c42e74962b
f94d6d3487a0dc80d80f5e1d4e63747ab5aedc02
/tags/ANDROID_OPENGL_ES_2_2.14/zildo-platform-android-gles2/src/zildo/platform/filter/AndroidCloudFilter.java
d4e1eced6a38cceed1db923b99178243ed920aa5
[]
no_license
BGCX261/zildo-svn-to-git
547f2141f4f1801af04c3f5e667c946d2d85f668
a3981c82258259c8b050a02977b7f35c0c09f19f
refs/heads/master
2016-09-05T16:34:28.573967
2015-08-25T15:44:48
2015-08-25T15:44:48
41,495,613
0
0
null
null
null
null
UTF-8
Java
false
false
1,883
java
/** * The Land of Alembrum * Copyright (C) 2006-2013 Evariste Boussaton * * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ package zildo.platform.filter; import shader.Shaders; import zildo.client.ClientEngineZildo; import zildo.fwk.gfx.GraphicStuff; import zildo.fwk.gfx.filter.CloudFilter; import zildo.monde.sprites.Reverse; import zildo.monde.util.Vector4f; import zildo.platform.opengl.AndroidPixelShaders; import android.opengl.GLES20; /** * @author Tchegito * */ public class AndroidCloudFilter extends CloudFilter { Shaders shaders; public AndroidCloudFilter(GraphicStuff graphicStuff) { super(graphicStuff); shaders = AndroidPixelShaders.shaders; } @Override public boolean renderFilter() { super.startInitialization(); updateQuad(0, 0, u, -v, Reverse.NOTHING); this.endInitialization(); float colorFactor=0.2f; GLES20.glEnable(GLES20.GL_BLEND); shaders.setColor(new Vector4f(colorFactor, colorFactor, colorFactor, 0.1f)); GLES20.glBlendFunc(GLES20.GL_ZERO, GLES20.GL_ONE_MINUS_SRC_COLOR); GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, ClientEngineZildo.tileEngine.texCloudId); super.render(); GLES20.glDisable(GLES20.GL_BLEND); return true; } }
26d9ca2833b57dbf94831ed3954506f410a822df
0b78b74a7954e752caf8201f11939f62f838293e
/src/test1/IsSequenceOfBST.java
d2c0f5d15819e7e4126070637b55e7faa5abc612
[]
no_license
xshqhua/LeetCode
916be6834b17d90f90505c8f78aefa5441f8bef7
9485cee7946f96e45a158a83f4dc328d8ff68874
refs/heads/master
2020-04-17T05:14:11.046182
2017-06-18T12:43:59
2017-06-18T12:43:59
66,144,393
0
0
null
null
null
null
UTF-8
Java
false
false
937
java
/** * @project LeetCode * @package test1 * @filename IsSequenceOfBST.java */ package test1; /** * @author xsh * @Email [email protected] * @date 2016年7月10日 下午3:37:35 */ public class IsSequenceOfBST { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int [] num = {5,7,6,9,11,10,8}; System.out.println(new IsSequenceOfBST().isSequenceOfBST(num,0,num.length-1)); } //start =0; //end = length-1 public boolean isSequenceOfBST(int [] seq,int start,int end){ if(seq==null||seq.length==0) return false; int root = seq[end]; int i = start; for(;i<end;i++){ if(seq[i]>=root) break; } int j = i; for(;j<end;j++) if(seq[j]<root) return false; boolean left = true; if(i>start) left = isSequenceOfBST(seq,start,i-1); boolean right = true; if(i<end) right = isSequenceOfBST(seq,i+1,end); return left&&right; } }
dc9ce3e1e40ca9147bf7a51092c3950b6eb53332
049c380769758383f3b956c3b9c9b613ce3e3fb5
/src/main/java/com/lzl/springaop/bean/aspect/SelfBeanFactoryPostProcessor.java
8c13d3ca40a089fc1e6b895a25fbd3e0e4b7da1c
[]
no_license
lizanle521/springaop
81ba30a8d646dd39b824d55d651e5503ff2d3c04
f45bc79967d2f70a2443c586ba05acaae844e84b
refs/heads/master
2022-12-21T21:41:15.513565
2019-07-01T15:51:51
2019-07-01T15:51:51
112,455,896
1
0
null
2022-10-04T23:50:10
2017-11-29T09:39:29
Java
UTF-8
Java
false
false
538
java
package com.lzl.springaop.bean.aspect; import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.BeanFactoryPostProcessor; import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; public class SelfBeanFactoryPostProcessor implements BeanFactoryPostProcessor { @Override public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { System.out.println("SelfBeanFactoryPostProcessor.postProcessBeanFactory"); } }
4bb3516ddbeaa3139a36aba88230b1cb6ea3489c
f3633296cde4ad3f15a8d852894a1f38cf712a89
/src/com/chess/gui/GameHistoryPanel.java
f0599d6fd1a46e6ca81f3eda44465bfcf4809e70
[]
no_license
catalyzedgrey/ChessEngine
16c106a458b1051792996f085b945143720c3fb9
2e8ac4f30a28af6dcd79e40ac039c510e0bd6432
refs/heads/master
2021-07-21T14:22:21.609379
2017-10-25T15:14:07
2017-10-25T15:14:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,816
java
package com.chess.gui; import com.chess.engine.board.Board; import com.chess.engine.board.Move; import javax.swing.*; import javax.swing.table.DefaultTableModel; import java.awt.*; import java.util.ArrayList; import java.util.List; import static com.chess.gui.Table.*; public class GameHistoryPanel extends JPanel{ private final DataModel model; private JScrollPane scrollPane; private static final Dimension HISTORY_PANEL_DIMENSION = new Dimension(100, 40); GameHistoryPanel(){ this.setLayout(new BorderLayout()); this.model = new DataModel(); final JTable table = new JTable(model); table.setRowHeight(15); this.scrollPane = new JScrollPane(table); scrollPane.setColumnHeaderView(table.getTableHeader()); scrollPane.setPreferredSize(HISTORY_PANEL_DIMENSION); this.add(scrollPane, BorderLayout.CENTER); this.setVisible(true); } void redo(final Board board, final MoveLog moveHistory){ int currentRow = 0; this.model.clear(); for(final Move move : moveHistory.getMoves()){ final String moveText = move.toString(); if(move.getMovedPiece().getPieceAlliance().isWhite()){ this.model.setValueAt(moveText, currentRow, 0); }else if(move.getMovedPiece().getPieceAlliance().isBlack()){ this.model.setValueAt(moveText, currentRow, 1); currentRow++; } } if(moveHistory.getMoves().size() > 0){ final Move lastMove = moveHistory.getMoves().get(moveHistory.size() - 1); final String moveText = lastMove.toString(); if(lastMove.getMovedPiece().getPieceAlliance().isWhite()){ this.model.setValueAt(moveText + calculateCheckandCheckMateHash(board), currentRow, 0); }else if(lastMove.getMovedPiece().getPieceAlliance().isBlack()){ this.model.setValueAt(moveText + calculateCheckandCheckMateHash(board), currentRow - 1, 1); } } final JScrollBar vertical = scrollPane.getVerticalScrollBar(); vertical.setValue(vertical.getMaximum()); } private String calculateCheckandCheckMateHash(Board board) { if(board.currentPlayer().isInCheckMate()){ return "#"; }else if(board.currentPlayer().isInCheck()){ return "+"; } return ""; } private static class DataModel extends DefaultTableModel{ private final List<Row> values; private static final String[] Names = {"White", "Black"}; DataModel(){ this.values = new ArrayList<>(); } public void clear(){ this.values.clear(); setRowCount(0); } @Override public int getRowCount() { if(this.values == null){ return 0; } return this.values.size(); } @Override public int getColumnCount() { return Names.length; } @Override public Object getValueAt(final int row, final int column) { final Row currentRow = this.values.get(row); if(column == 0){ return currentRow.getWhiteMove(); }else if(column == 1){ return currentRow.getBlackMove(); } return null; } @Override public void setValueAt(final Object aValue, final int row, final int column) { final Row currentRow; if(this.values.size() <= row){ currentRow = new Row(); this.values.add(currentRow); }else{ currentRow = this.values.get(row); } if(column == 0){ currentRow.setWhiteMove((String) aValue); fireTableRowsInserted(row, row); }else if(column == 1){ currentRow.setBlackMove((String) aValue); fireTableCellUpdated(row, column); } } @Override public Class<?> getColumnClass(final int column){ return Move.class; } @Override public String getColumnName(final int column) { return Names[column]; } } private static class Row{ private String whiteMove; private String blackMove; Row(){ } public String getWhiteMove() { return this.whiteMove; } public String getBlackMove() { return this.blackMove; } public void setWhiteMove(final String Move) { this.whiteMove = Move; } public void setBlackMove(final String Move) { this.blackMove = Move; } } }
4f34dfda65cd96eabb6bdf2afcec0761ee93551e
981df8aa31bf62db3b9b4e34b5833f95ef4bd590
/xworker_swt_thingeditor/src/test/java/xworker/swt/thingeditor/TestThingEditor.java
6f153a5441bf190a1d467e452a53d79a0004db38
[ "Apache-2.0" ]
permissive
x-meta/xworker
638c7cd935f0a55d81f57e330185fbde9dce9319
430fba081a78b5d3871669bf6fcb1e952ad258b2
refs/heads/master
2022-12-22T11:44:10.363983
2021-10-15T00:57:10
2021-10-15T01:00:24
217,432,322
1
0
Apache-2.0
2022-12-12T23:21:16
2019-10-25T02:13:51
Java
UTF-8
Java
false
false
423
java
package xworker.swt.thingeditor; import org.xmeta.ActionContext; import org.xmeta.Thing; import org.xmeta.World; import xworker.ide.SimpleThingEditor; import xworker.swt.SwtThingEditor; public class TestThingEditor { public static void main(String[] args) { try { World world = World.getInstance(); world.init("./xworker/"); SwtThingEditor.run(); }catch(Exception e) { e.printStackTrace(); } } }
d6d1c1c2a6f3885abce0bd7b1780f1500d2aa99b
550a5c79dc9862bf6e9837185e54cf6a45838191
/src/com/hh/rdp/model/Column.java
83d416fbddfd4151bb36bce7726e56d4e30e8dc1
[]
no_license
huanghuazsp/com.hh.rdp
35d93b9bc71b647bc4ce414c4050f9d8e3bc4194
5be8ed7c11b6ce589b78023f4ab9816afd141317
refs/heads/master
2021-01-20T02:06:51.859766
2017-04-27T12:54:21
2017-04-27T12:54:31
89,373,122
0
0
null
null
null
null
UTF-8
Java
false
false
2,183
java
package com.hh.rdp.model; import java.util.HashMap; import java.util.Map; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlTransient; import com.hh.rdp.dm.model.Table; @XmlRootElement public class Column { private String id = ""; private String text = ""; private String name = ""; private String type = "String"; private String length = "256"; private String empty = "true"; private String primary = "false"; private String defaultValue = ""; private Table parent; private Map<String, String> map = new HashMap<String, String>(); @XmlAttribute public String getId() { return id; } public void setId(String id) { this.id = id; } @XmlAttribute public String getText() { return text; } public void setText(String text) { this.text = text; } @XmlAttribute public String getName() { return name; } public void setName(String name) { this.name = name; } @XmlAttribute public String getType() { return type; } public void setType(String type) { this.type = type; } @XmlAttribute public String getLength() { return length; } public void setLength(String length) { this.length = length; } @XmlAttribute public String getEmpty() { return empty; } public void setEmpty(String empty) { this.empty = empty; } @XmlAttribute public String getPrimary() { return primary; } public void setPrimary(String primary) { this.primary = primary; } @XmlAttribute public String getDefaultValue() { return defaultValue; } public void setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; } @XmlTransient public Map<String, String> getMap() { return map; } public void setMap(Map<String, String> map) { this.map = map; } @XmlTransient public Table getParent() { return parent; } public void setParent(Table parent) { this.parent = parent; } @XmlTransient public boolean isLob() { return "大字段".equals(length) || "byte[]".equals(type); } }
[ "huanghuazsp@183e5d52-12aa-4c75-83e6-4e6be8f07bd4" ]
huanghuazsp@183e5d52-12aa-4c75-83e6-4e6be8f07bd4
0be54cd2fe18e8699ea6afad3fc5957e7adae750
5b526e3bd7c39e1280230a9227651b06f8cf8d7c
/MysqlDB/src/test/java/Hackathon/MysqlDB/AppTest.java
9a93312b1c5bc2b54a8348dd89f412b24c60bfdb
[]
no_license
chienptit941/HackathonHCVT
7492560e89b5261e6eda6c759f86513a656cdf0b
64b7c2d5604b05116a8e79cb545ce3ae026e7bbc
refs/heads/master
2021-01-10T13:39:56.870200
2016-04-09T08:40:22
2016-04-09T08:40:22
55,823,655
0
0
null
null
null
null
UTF-8
Java
false
false
645
java
package Hackathon.MysqlDB; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } }
148f435f8d720aa8b41eccc71eb27e6ef16fb32c
f86e49f08736076d0b7197b137cbdf01fdedbbbb
/src/test/java/io/assignment/kalah/model/BoardTest.java
0df387a7b82b8927aeb425c37fc9fe033c7519a2
[]
no_license
richakumari14/Kalaha_Game_Assignment
949aa0afcb89d12e7df6c4f672cfce347687e00c
b000bbbbdf7dc78792204755eaf65dd4a562e1f8
refs/heads/main
2023-03-30T20:30:23.356624
2021-04-01T18:37:08
2021-04-01T18:37:08
353,790,701
0
0
null
null
null
null
UTF-8
Java
false
false
1,424
java
package io.assignment.kalah.model; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class BoardTest { @Value("${kalah.pit.stones:6}") private int pitStoneCount; @Test public void testGetPit() { final KalahBoard board = new KalahBoard(pitStoneCount); final Pit pit = board.getPit(6); Assert.assertNotNull(pit); Assert.assertEquals(6, pit.getId()); } @Test public void testInitialization() { final KalahBoard board = new KalahBoard(pitStoneCount); Assert.assertNotNull(board.getPits()); Assert.assertEquals(KalahBoard.PIT_END_INDEX, board.getPits().size()); } @Test public void testStoneCount() { final KalahBoard board1 = new KalahBoard(pitStoneCount); final KalahBoard board2 = new KalahBoard(pitStoneCount); board2.getPit(5).setStoneCount(0); board2.getPit(11).setStoneCount(9); Assert.assertEquals(36, board1.getStoneCount(Player.PLAYER_A, true)); Assert.assertEquals(30, board2.getStoneCount(Player.PLAYER_A, true)); Assert.assertEquals(39, board2.getStoneCount(Player.PLAYER_B, true)); } }
2c67dfe0493bcd35753f4b2530eaf212f4d49465
21aa25d735b97f4d2988a6076ad28c70f2ba24cb
/app/src/main/java/com/zx/upm/service/LoginService.java
f96e920b12518886d330c60362394c658e4b971c
[]
no_license
geniusatm4/UNI-APP
53195da6b58d4ca38e8187ad507dfab87bdb1bbc
3fd424cc9699374c0d570862389cafa63969948d
refs/heads/master
2021-04-27T08:42:05.271358
2018-02-22T15:09:38
2018-02-22T15:09:38
122,494,844
0
0
null
null
null
null
UTF-8
Java
false
false
190
java
package com.zx.upm.service; import com.zx.upm.bo.LoginBO; public class LoginService { public LoginBO doLogin(String username, String password) { return new LoginBO(); } }
c9f89d95260ea28e047b843d0a0ea1e1b4b936ba
741b6a8e18ff7e9ee8dd26aeb60fee7d9f7c192b
/SuperApp/src/ar/uba/fi/superapp/utils/WordsUtils.java
201c1ff4b5e02ed8fa55c9cb5a0c652c70437157
[ "MIT" ]
permissive
ProyectoDane/SuperApp
3d832d8c548c02c51532b4a28c13e722920729f0
4d370ae045b7560304b8adba09cdc454c3fb76bc
refs/heads/master
2016-08-12T14:34:50.358553
2016-04-09T19:22:42
2016-04-09T19:22:42
55,080,328
0
0
null
null
null
null
UTF-8
Java
false
false
1,792
java
package ar.uba.fi.superapp.utils; import java.util.ArrayList; import java.util.HashMap; import java.util.Random; import org.andengine.util.adt.color.Color; import ar.uba.fi.superapp.object.ColoredLetter; public class WordsUtils { private static WordsUtils _instance = null; private WordsUtils(){ } public static WordsUtils get() { if(_instance == null){ _instance = new WordsUtils(); } return _instance; } public ArrayList<ColoredLetter> wordToColoredLettersArray(String word){ Color[] colors = { new Color(0.04f,0.10f,0.85f) ,new Color(0.04f,0.60f,0.7f) , new Color(0.88f,0.08f,0.40f), new Color(0.99f,0.01f,0.15f) ,new Color(0.99f,0.54f,0.01f) , new Color(0.58f,0.9f,0.46f) , new Color(1f,0.15f,0.89f)}; shuffleArray(colors); ArrayList<ColoredLetter> coloredLetters = new ArrayList<ColoredLetter>(); HashMap<Character, Color> colorMap = new HashMap<Character, Color>(); char[] letters = word.toCharArray(); int index = 0; for (char c : letters ) { if(!colorMap.containsKey(c)){ colorMap.put(c,colors[index]); index++; index = index%colors.length; } coloredLetters.add(new ColoredLetter(colorMap.get(c), c)); } return coloredLetters; } public ArrayList<ColoredLetter> wordToBlackLettersArray(String word){ ArrayList<ColoredLetter> coloredLetters = new ArrayList<ColoredLetter>(); char[] letters = word.toCharArray(); for (char c : letters ) { coloredLetters.add(new ColoredLetter(Color.BLACK, c)); } return coloredLetters; } static void shuffleArray(Object[] ar) { Random rnd = new Random(); for (int i = ar.length - 1; i > 0; i--) { int index = rnd.nextInt(i + 1); Object a = ar[index]; ar[index] = ar[i]; ar[i] = a; } } }
6387e6be9a1c32309cff7161bdb3ebf838b5f01d
2513336b72971ae78aaf284e85164000ea4da19f
/wyx-jvm-demo-v06/src/main/java/cn/wyx/demo/jvm/instructions/conversions/l2x/L2F.java
6f57481fb7fc629b923478d5bc3870cbc9778c7a
[]
no_license
shawnwhale/JVM-Demo
5e448fe1b1cbcd0951c1b475af263a297430724f
50083064a3922dd8e6909669d8df2f229ed074c6
refs/heads/master
2023-04-30T09:07:07.924095
2021-05-14T12:59:03
2021-05-14T12:59:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
550
java
package cn.wyx.demo.jvm.instructions.conversions.l2x; import cn.wyx.demo.jvm.instructions.base.InstructionNoOperands; import cn.wyx.demo.jvm.runtimedataarea.Frame; import cn.wyx.demo.jvm.runtimedataarea.OperandStack; /** * @author WYX * @date 2021-3-14 - 21:42 * -------------------------------- */ public class L2F extends InstructionNoOperands { @Override public void execute(Frame frame) { OperandStack stack = frame.operandStack(); long l = stack.popLong(); float f = l; stack.pushFloat(f); } }
c5f6a28e4b0571715dac017999ff408cc4d134da
d4547015555d3897b742f98b9d41754432a7d88c
/src/main/java/com/controller/GetChinaTotalController.java
f663f5648d874f7dcf5c1c1d2f1134e15f153ed0
[]
no_license
DaxtonYin/DataSource
c45107fad2a9c55460552839a4afbe129b49ce92
8318a7ceeea19d4fa0eb3912fa1de1f46cedbe4d
refs/heads/master
2023-04-26T02:48:59.407063
2021-05-16T11:08:43
2021-05-16T11:08:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
487
java
package com.controller; import com.util.FileUtils; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @CrossOrigin(origins = "*",maxAge = 3600) public class GetChinaTotalController { @RequestMapping("/ChinaTotal_data") public String getTotalData() { return new FileUtils().getFileContent("ChinaTotal.json"); } }
61daa2fa8d88668ef45d51d724701df20738382a
e051d2be6a76e9b11eb94becf5397a5ffca70f58
/src/structural/facade/FacadePSVM.java
8a88d66f0f344d1255c2e754a2de0d80175c5aa1
[]
no_license
bmk15897/DesignPatterns
68d67552ff8624c1656ea55cac37a864f151f59f
eb7af02e574f634cb0d8d190a1a61d2aa38aa079
refs/heads/main
2023-01-24T02:04:33.433584
2020-12-09T00:47:35
2020-12-09T00:47:35
319,010,503
0
0
null
null
null
null
UTF-8
Java
false
false
417
java
package structural.facade; public class FacadePSVM { public static void main(String[] args) { JdbcFacade facade = new JdbcFacade(); facade.createTable("CREATE TABLE ADDRESS (ID INT, CITY VARCHAR(20))"); System.out.println("Table Created."); facade.insertIntoTable("INSERT INTO ADDRESS values (1,'AHMEDNAGAR')"); System.out.println("Record inserted."); facade.getAddresses("SELECT * FROM ADDRESS"); } }
3bd88ed821e89deba2e6770926b35dafa0b141e7
e201ffe6c42c8ba343cb41ec6b404da293710dea
/web2t/src/net/bitacademy/java67/step18/PageServlet05.java
acf945a15ed6f959983ba8e867b9b554930297a5
[]
no_license
eomjinyoung/Java67
1b6b1577dc2cc5b7c5f16c128e6ab29fdad0e978
d7631dcd6a219e7c73d89830ef737b42718849f4
refs/heads/master
2021-01-19T06:27:06.995456
2016-02-26T08:25:00
2016-02-26T08:25:00
31,700,412
14
15
null
null
null
null
UTF-8
Java
false
false
1,251
java
package net.bitacademy.java67.step18; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; /* 실습 목표: 세션 사용 * - PageServlet05는 세션에 보관된 값을 꺼내어 DB에 저장한다. */ @WebServlet("/step18/page05") public class PageServlet05 extends HttpServlet { private static final long serialVersionUID = 1L; @Override protected void service( HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); String name = (String)session.getAttribute("name"); String age = (String)session.getAttribute("age"); String tel = (String)session.getAttribute("tel"); response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); out.println("<html><body><h1>페이지5</h1>"); out.printf("%s(%s,%s)님 정보를 저장했습니다.\n", name, age, tel); out.println("</body></html>"); } }
ea2336bad6efab3a8efc48fc81bd018fd1718bfa
e32d9931a04a0239eb45ca1d2a36d11f71be13f3
/src/main/java/view/App.java
8f6ceb81c5b8c7da4297070bb4aa65b7af1efb55
[]
no_license
JakubFilipiak/ServicePricingGenerator
7e6416dad8e44c5e700742797dc310cb951f847d
0ecafd061a1944c85620e6a43519fa4a356db30f
refs/heads/master
2020-04-20T02:33:31.050660
2019-02-21T06:25:50
2019-02-21T06:25:50
168,574,504
0
0
null
null
null
null
UTF-8
Java
false
false
772
java
package view; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; /** * Created by Jakub Filipiak on 31.01.2019. */ public class App extends Application { @Override public void start(Stage primaryStage) throws Exception { FXMLLoader fxmlLoader = new FXMLLoader(App.class.getResource( "/MainView.fxml")); Parent layout = fxmlLoader.load(); Scene scene = new Scene(layout); primaryStage.setScene(scene); primaryStage.setTitle("Generator wycen - PDF"); primaryStage.setResizable(false); primaryStage.show(); } public static void main(String[] args) { launch(args); } }
9ad75e8b623ac4f01d57706f4a6be375422a5d0e
c7d87f75a85af691c2883c14387736213f9d5eac
/Pragmatic Unit/chapter02beans/src/chapter02beans/Criteria.java
bcdde975c89facdd2bd903fb45aa4dd6a293437f
[]
no_license
apetrovskiy/JavaSamples
b9fd89073e99200beac0e06203b7175377ddb803
9d76bd819c78ec09f1c38831fc41a158c550c247
refs/heads/master
2020-04-09T10:37:40.576025
2016-06-23T17:32:31
2016-06-23T17:32:31
8,670,749
1
0
null
null
null
null
UTF-8
Java
false
false
891
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package chapter02beans; import java.util.ArrayList; import java.util.Iterator; import java.util.*; /** * * @author shuran */ public class Criteria implements Iterable<Criterion> { private List<Criterion> criteria = new ArrayList<>(); public void add(Criterion criterion) { criteria.add(criterion); } @Override public Iterator<Criterion> iterator() { return criteria.iterator(); } public int arithmeticMean() { return 0; } public double geometricMean(int[] numbers) { int totalProduct = Arrays.stream(numbers).reduce(1, (product, number) -> product * number); return Math.pow(totalProduct, 1.0 / numbers.length); } }
[ "apetrovskiy" ]
apetrovskiy
de8da5c3a9df558a1b2a1ddfb628ecae202d5c1e
6d5afb608d533d26b0e040c015f0c9ed5900bcc7
/src/main/java/me/felixnaumann/fwebserver/cli/ConsoleThread.java
e9417a22456601091baf9e0c6b6eef9cc5ac3c58
[]
no_license
failex234/FWebServer
cc106ab79ff04eb55441c8b44aaf6ee4abb92042
f2c154b7e19c2c660b1d8cf19147cf81605f2743
refs/heads/master
2022-12-09T11:09:50.998830
2022-09-06T07:45:07
2022-09-06T07:45:07
155,113,383
0
0
null
null
null
null
UTF-8
Java
false
false
2,115
java
package me.felixnaumann.fwebserver.cli; import me.felixnaumann.fwebserver.annotations.CliCommandName; import me.felixnaumann.fwebserver.model.ConsoleCommand; import me.felixnaumann.fwebserver.server.Server; import me.felixnaumann.fwebserver.utils.ReflectionUtils; import java.io.File; import java.io.IOException; import java.lang.reflect.Method; import java.util.Scanner; public class ConsoleThread implements Runnable { public static String currdir = ""; public static void runThread() { new Thread(new ConsoleThread()).start(); } @Override public void run() { while (!Thread.currentThread().isInterrupted()) { if (!Server.configloaded) { while (!Server.configloaded) { try { Thread.sleep(500); } catch (InterruptedException ignored) { } } try { currdir = (new File(Server.config.getWwwroot())).getCanonicalPath(); } catch (IOException ignored) { } } System.out.print("> "); Scanner in = new Scanner(System.in); String inputString = in.nextLine(); ConsoleCommand command = ConsoleCommand.buildCommand(inputString); Method commandMethod = ReflectionUtils.getCliMethod(command.getCommand()); try { if (commandMethod != null) { if (!commandMethod.getAnnotation(CliCommandName.class).implemented()) System.err.println("command not implemented yet"); else commandMethod.invoke(null, command); } else { System.err.println("command not found"); } } catch (Exception e) { System.err.printf("An error occured while running command %s. Please check the stack trace.\n", command.getCommand()); e.printStackTrace(); } } } }
e646c8ff80920aa688a215cb656335f278443632
0ac408b3204d00d901bde370a94543457f68f65e
/src/main/java/com/sdajava/kenxls/utility/WriteExcelFile.java
e9a2f477852fd8260469ea28f847a5652da3f3f6
[]
no_license
grovas/KenXLS
b09f4d09641a076ff46193f73a662bd1434297d6
979a5b870e2e8422fbe174e36d7851f5fb0319ae
refs/heads/master
2021-01-19T22:08:21.182070
2017-07-05T07:50:25
2017-07-05T07:50:25
88,756,940
0
0
null
2017-07-05T07:47:20
2017-04-19T14:50:56
Java
UTF-8
Java
false
false
2,196
java
package com.sdajava.kenxls.utility; import java.io.*; import java.util.Map; import com.sdajava.kenxls.model.DrugStore; import com.sdajava.kenxls.model.Order; import org.apache.poi.ss.usermodel.*; import org.apache.poi.xssf.usermodel.XSSFRow; import org.apache.poi.xssf.usermodel.XSSFSheet; import org.apache.poi.xssf.usermodel.XSSFWorkbook; public class WriteExcelFile { /** * * @param order - map read from xlsx file * Function write to XLSX file data into Zamówienia sheet. * Sheet contain three columns: * - nazwa apteki * - nazwa leku * - ilość leku zamówiona * Orders with non value of quantity are omitted */ public static void writeDataToExcelSheetZamowienie(Map order) { Map<DrugStore, Order> orderMap = order; try { //Create Workbook instance holding reference to .xlsx file XSSFWorkbook workbook = new XSSFWorkbook(); XSSFSheet sheet = workbook.createSheet("Zamówienie"); final XSSFRow[] row = {sheet.createRow(0)}; final int[] rowNumber = {1}; //Headline row[0].createCell(0).setCellValue("Nazwa apteki"); row[0].createCell(1).setCellValue("Nazwa preparatu"); row[0].createCell(2).setCellValue("Ilość"); orderMap.forEach((k,v) -> { if (!v.getQuantity().equals("0")) { Row r = sheet.createRow(rowNumber[0]); r.createCell(0).setCellValue(k.getStoreName()); r.createCell(1).setCellValue(v.getDrugName()); r.createCell(2).setCellValue(v.getQuantity()); rowNumber[0]++; } }); workbook = FormatOutputStyle.backgroundCellColor(sheet, workbook, IndexedColors.GREY_25_PERCENT); FileOutputStream fileOut = new FileOutputStream(FileService.getFileOut()); workbook.write(fileOut); fileOut.close(); workbook.close(); } catch (Exception e) { e.printStackTrace(); } } }
8d15326f3c816126846d06b51233d059387b3d28
a5483a1a7178713d14f5a419e431435902f9d93e
/ch09prj3_ConsoleTester/src/UserIO.java
3fe9d5fa3bf5540b686f10c1450c209f2bf098e9
[]
no_license
EmsCode82/Java_Instruction
d622e036eb921824521b2be4c1056edf9bc3fd37
26f46f783d006526169d39d92c01fd7e92cd0d5a
refs/heads/master
2021-04-23T05:44:16.407224
2020-04-14T18:04:36
2020-04-14T18:04:36
249,903,388
0
0
null
null
null
null
UTF-8
Java
false
false
143
java
// this interface defines the methods for getting input from and output to the user public interface UserIO extends UserInput, UserOutput { }
98a1d61c05c23d93cf9e8c20c0584071c47e4778
a661408a87d81436ae221fe09de7eb6db817a5a7
/app/src/main/java/com/mahjongmanager/riichi/handbuilder/TutorialResults.java
5d1228a8b3015227cfbf3d322caac6b1f1d59f07
[]
no_license
selenta/mahjongmanager-riichi
a97d098e9a46e706798e06acd327cfee8ae97fee
9aba375dbf8889a8c22f1b1d8091db1ff4f9cbd5
refs/heads/master
2020-05-22T01:32:39.895274
2017-03-22T02:00:48
2017-03-22T02:00:48
52,400,614
3
1
null
null
null
null
UTF-8
Java
false
false
3,189
java
package com.mahjongmanager.riichi.handbuilder; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import com.mahjongmanager.riichi.MainActivity; import com.mahjongmanager.riichi.R; import com.mahjongmanager.riichi.common.Round; import com.mahjongmanager.riichi.common.Tile; import com.mahjongmanager.riichi.components.DiscardPile; import com.mahjongmanager.riichi.components.HandDisplay; import com.mahjongmanager.riichi.utils.TutorialLibrary; public class TutorialResults extends Fragment implements View.OnClickListener { DiscardPile playerDiscardPile; DiscardPile expectedDiscardPile; HandDisplay playerHandDisplay; HandDisplay expectedHandDisplay; Round playerRound; boolean explanationNeeded = true; Button nextButton; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Yeah, I know I could create a new layout... but why? View myInflatedView = inflater.inflate(R.layout.fragment_handbuilder_tutorial_2results, container, false); assignUIElements(myInflatedView); loadData(); evaluateSuccess(); return myInflatedView; } ///////////////////////////////////////// /////////// View //////////// ///////////////////////////////////////// @Override public void onClick(View v) { switch (v.getId()) { case R.id.nextButton: if(explanationNeeded){ ((MainActivity)getActivity()).goToTutorialExplanation(null); } else { ((MainActivity)getActivity()).backToMainMenu(null); } break; } } ///////////////////////////////////////// /////////// Init //////////// ///////////////////////////////////////// private void assignUIElements(View myInflatedView){ playerDiscardPile = (DiscardPile) myInflatedView.findViewById(R.id.playerDiscardPile); expectedDiscardPile = (DiscardPile) myInflatedView.findViewById(R.id.expectedDiscardPile); playerHandDisplay = (HandDisplay) myInflatedView.findViewById(R.id.playerHandDisplay); expectedHandDisplay = (HandDisplay) myInflatedView.findViewById(R.id.expectedHandDisplay); nextButton = (Button) myInflatedView.findViewById(R.id.nextButton); nextButton.setOnClickListener(this); } private void loadData(){ playerRound = ((MainActivity)getActivity()).getCurrentRound(); playerDiscardPile.addTiles(playerRound.getDiscards(Tile.Wind.SOUTH)); playerHandDisplay.setHand(playerRound.getHand(Tile.Wind.SOUTH)); expectedDiscardPile.addTiles(TutorialLibrary.getTutorialExpectedDiscards()); expectedHandDisplay.setHand(TutorialLibrary.getTutorialExpectedHand()); } private void evaluateSuccess(){ if( explanationNeeded ){ nextButton.setText("View Explanation"); } else { nextButton.setText("Back to Main Menu"); } } }
73b85e4cdbde43a021c69653a665e9f54b05a3a8
56a1e36147e5918d7c815a5d994bfd68fd17ca7e
/error2/src/main/java/net/skhu/ServletInitializer.java
0b32e75c0a8a3f67ceec8b49cad3c559b9f6cecb
[]
no_license
jejecrunch/spring
061a2ef86fa40c75255c05723433ff20849b6bf8
673c8b980cf0cbf7822a6771d3350e7512d6cdbc
refs/heads/master
2021-06-18T14:40:43.208664
2021-03-01T17:34:44
2021-03-01T17:34:44
186,463,017
0
0
null
null
null
null
UTF-8
Java
false
false
398
java
package net.skhu; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; public class ServletInitializer extends SpringBootServletInitializer { @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { return application.sources(Error2Application.class); } }
0cd69d64f22402eb0d7d41266ba3d3b9579ecfce
1d26066a78cc0ddaf14ee09a3f078a0ca62db758
/library/src/main/java/com/danimahardhika/cafebar/CafeBarUtil.java
81134872a59eaadd5a969206f643c58e91aa01f2
[ "Apache-2.0" ]
permissive
Deep-Connect/cafebar
759a052443bdb5c6187d2a6679bdce657363328a
9f91a7ee02c356943d85114189e916d980b94f62
refs/heads/master
2021-07-23T06:10:58.050364
2017-10-30T03:51:11
2017-10-30T03:51:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
25,426
java
package com.danimahardhika.cafebar; /* * CafeBar * * Copyright (c) 2017 Dani Mahardhika * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import android.app.Activity; import android.content.Context; import android.content.res.Configuration; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Point; import android.graphics.PorterDuff; import android.graphics.Typeface; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.os.Build; import android.support.annotation.ColorInt; import android.support.annotation.DrawableRes; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.design.widget.Snackbar; import android.support.v4.content.ContextCompat; import android.support.v7.widget.AppCompatDrawableManager; import android.support.v7.widget.CardView; import android.text.TextUtils; import android.util.DisplayMetrics; import android.util.Log; import android.util.TypedValue; import android.view.Display; import android.view.Gravity; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; import android.widget.LinearLayout; import android.widget.TextView; import java.util.Locale; class CafeBarUtil { @NonNull static View getBaseCafeBarView(@NonNull CafeBar.Builder builder) { int color = builder.mTheme.getColor(); int titleColor = builder.mTheme.getTitleColor(); //Creating LinearLayout as rootView LinearLayout root = new LinearLayout(builder.mContext); root.setId(R.id.cafebar_root); root.setOrientation(LinearLayout.HORIZONTAL); root.setGravity(Gravity.CENTER_VERTICAL); root.setBackgroundColor(color); root.setLayoutParams(new LinearLayout.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); root.setClickable(true); //Creating TextView for content TextView content = new TextView(builder.mContext); content.setId(R.id.cafebar_content); content.setMaxLines(builder.mMaxLines); content.setEllipsize(TextUtils.TruncateAt.END); content.setTextColor(titleColor); content.setTextSize(TypedValue.COMPLEX_UNIT_PX, builder.mContext.getResources() .getDimensionPixelSize(R.dimen.cafebar_content_text)); if (builder.getTypeface(CafeBar.FONT_CONTENT) != null) { content.setTypeface(builder.getTypeface(CafeBar.FONT_CONTENT)); } content.setText(builder.mContent); if (builder.mSpannableBuilder != null) { content.setText(builder.mSpannableBuilder, TextView.BufferType.SPANNABLE); } content.setLayoutParams(new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT)); content.setGravity(Gravity.CENTER_VERTICAL); boolean tabletMode = builder.mContext.getResources().getBoolean(R.bool.cafebar_tablet_mode); if (tabletMode || builder.mFloating) { content.setLayoutParams(new LinearLayout.LayoutParams( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT)); content.setMinWidth(builder.mContext.getResources() .getDimensionPixelSize(R.dimen.cafebar_floating_min_width)); content.setMaxWidth(builder.mContext.getResources() .getDimensionPixelSize(R.dimen.cafebar_floating_max_width)); } int side = builder.mContext.getResources().getDimensionPixelSize(R.dimen.cafebar_content_padding_side); int top = builder.mContext.getResources().getDimensionPixelSize(R.dimen.cafebar_content_padding_top); if (builder.mIcon != null) { Drawable drawable = getResizedDrawable( builder.mContext, builder.mIcon, titleColor, builder.mTintIcon); if (drawable != null) { content.setCompoundDrawablesWithIntrinsicBounds(drawable, null, null, null); content.setCompoundDrawablePadding(top); } } boolean multiLines = isContentMultiLines(builder); boolean containsPositive = builder.mPositiveText != null; boolean containsNegative = builder.mNegativeText != null; boolean longNeutralAction = isLongAction(builder.mNeutralText); if (multiLines || containsPositive || containsNegative || longNeutralAction) { top = side; builder.mLongContent = true; } root.setPadding(side, top, side, top); if (builder.mPositiveText == null && builder.mNegativeText == null) { if (builder.mFitSystemWindow && !builder.mFloating) { Configuration configuration = builder.mContext.getResources().getConfiguration(); int navBar = getNavigationBarHeight(builder.mContext); if (tabletMode || configuration.orientation == Configuration.ORIENTATION_PORTRAIT) { root.setPadding(side, top, side, (top + navBar)); } else { root.setPadding(side, top, (side + navBar), top); } } //Adding childView to rootView root.addView(content); //Returning rootView return root; } //Change root orientation to vertical root.setOrientation(LinearLayout.VERTICAL); //Creating another linear layout for button container LinearLayout buttonBase = new LinearLayout(builder.mContext); buttonBase.setId(R.id.cafebar_button_base); buttonBase.setOrientation(LinearLayout.HORIZONTAL); buttonBase.setGravity(Gravity.END); buttonBase.setLayoutParams(new LinearLayout.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); //Adding button String neutralText = builder.mNeutralText; if (neutralText != null) { TextView neutral = getActionView(builder, neutralText, builder.mNeutralColor); neutral.setId(R.id.cafebar_button_neutral); if (builder.getTypeface(CafeBar.FONT_NEUTRAL) != null) { neutral.setTypeface(builder.getTypeface(CafeBar.FONT_NEUTRAL)); } buttonBase.addView(neutral); } String negativeText = builder.mNegativeText; if (negativeText != null) { TextView negative = getActionView(builder, negativeText, builder.mNegativeColor); negative.setId(R.id.cafebar_button_negative); LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) negative.getLayoutParams(); params.setMargins( params.leftMargin + builder.mContext.getResources().getDimensionPixelSize(R.dimen.cafebar_button_margin), params.topMargin, params.rightMargin, params.bottomMargin); if (builder.getTypeface(CafeBar.FONT_NEGATIVE) != null) { negative.setTypeface(builder.getTypeface(CafeBar.FONT_NEGATIVE)); } buttonBase.addView(negative); } String positiveText = builder.mPositiveText; if (positiveText != null) { int positiveColor = CafeBarUtil.getAccentColor(builder.mContext, builder.mPositiveColor); TextView positive = getActionView(builder, positiveText, positiveColor); positive.setId(R.id.cafebar_button_positive); LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) positive.getLayoutParams(); params.setMargins( params.leftMargin + builder.mContext.getResources().getDimensionPixelSize(R.dimen.cafebar_button_margin), params.topMargin, params.rightMargin, params.bottomMargin); if (builder.getTypeface(CafeBar.FONT_POSITIVE) != null) { positive.setTypeface(builder.getTypeface(CafeBar.FONT_POSITIVE)); } buttonBase.addView(positive); } //Adjust padding int buttonPadding = builder.mContext.getResources().getDimensionPixelSize( R.dimen.cafebar_button_padding); root.setPadding(side, top, (side - buttonPadding), (top - buttonPadding)); if (builder.mFitSystemWindow && !builder.mFloating) { Configuration configuration = builder.mContext.getResources().getConfiguration(); int navBar = getNavigationBarHeight(builder.mContext); if (tabletMode || configuration.orientation == Configuration.ORIENTATION_PORTRAIT) { root.setPadding(side, top, (side - buttonPadding), (top - buttonPadding + navBar)); } else { root.setPadding(side, top, (side - buttonPadding + navBar), top); } } //Adding content to container content.setPadding(0, 0, buttonPadding, 0); //Adding childView to rootView root.addView(content); //Adding button container to root root.addView(buttonBase); //Returning rootView return root; } static Snackbar getBaseSnackBar(@NonNull View cafeBarLayout, @NonNull CafeBar.Builder builder) { View view = builder.mTo; Snackbar snackBar = Snackbar.make(view, "", builder.mAutoDismiss ? builder.mDuration : Snackbar.LENGTH_INDEFINITE); Snackbar.SnackbarLayout snackBarLayout = (Snackbar.SnackbarLayout) snackBar.getView(); snackBarLayout.getLayoutParams().width = ViewGroup.LayoutParams.MATCH_PARENT; snackBarLayout.setPadding(0, 0, 0, 0); snackBarLayout.setBackgroundColor(Color.TRANSPARENT); snackBarLayout.setClickable(false); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { snackBarLayout.setElevation(0); } TextView textView = (TextView) snackBarLayout.findViewById( android.support.design.R.id.snackbar_text); if (textView != null) textView.setVisibility(View.INVISIBLE); boolean tabletMode = builder.mContext.getResources().getBoolean(R.bool.cafebar_tablet_mode); if (tabletMode || builder.mFloating) { int shadow = builder.mContext.getResources().getDimensionPixelSize(R.dimen.cardview_default_elevation); int padding = builder.mContext.getResources().getDimensionPixelSize(R.dimen.cafebar_floating_padding); CardView cardView = new CardView(builder.mContext); cardView.setUseCompatPadding(false); Snackbar.SnackbarLayout.LayoutParams params = new Snackbar.SnackbarLayout.LayoutParams( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); params.gravity = builder.mGravity.getGravity(); int bottom = builder.mFloating ? padding : 0; snackBarLayout.setClipToPadding(false); snackBarLayout.setPadding(padding, shadow, padding, bottom); if (builder.mFitSystemWindow && builder.mFloating) { Configuration configuration = builder.mContext.getResources().getConfiguration(); int navBar = getNavigationBarHeight(builder.mContext); if (configuration.orientation == Configuration.ORIENTATION_PORTRAIT) { snackBarLayout.setPadding(padding, shadow, padding, bottom + navBar); } else { snackBarLayout.setPadding(padding, shadow, padding + navBar, bottom); } } cardView.setLayoutParams(params); cardView.setClickable(true); if (!builder.mShowShadow) { cardView.setCardElevation(0f); } cardView.addView(cafeBarLayout); snackBarLayout.addView(cardView, 0); return snackBar; } LinearLayout root = new LinearLayout(builder.mContext); root.setOrientation(LinearLayout.VERTICAL); root.setLayoutParams(new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT)); if (builder.mShowShadow) { View shadow = new View(builder.mContext); shadow.setLayoutParams(new LinearLayout.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, builder.mContext.getResources().getDimensionPixelSize( R.dimen.cafebar_shadow_top))); shadow.setBackgroundResource(R.drawable.cafebar_shadow_top); root.addView(shadow); } root.addView(cafeBarLayout); snackBarLayout.addView(root, 0); return snackBar; } @NonNull static TextView getActionView(@NonNull CafeBar.Builder builder, @NonNull String action, int color) { boolean longAction = isLongAction(action); int res = R.layout.cafebar_action_button_dark; CafeBarTheme.Custom customTheme = builder.mTheme; int titleColor = customTheme.getTitleColor(); boolean dark = titleColor != Color.WHITE; if (dark) { res = R.layout.cafebar_action_button; } int padding = builder.mContext.getResources().getDimensionPixelSize( R.dimen.cafebar_button_padding); TextView button = (TextView) View.inflate(builder.mContext, res, null); button.setText(action.toUpperCase(Locale.getDefault())); button.setMaxLines(1); button.setEllipsize(TextUtils.TruncateAt.END); button.setTextColor(color); button.setPadding(padding, padding, padding, padding); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); int side = builder.mContext.getResources().getDimensionPixelSize( R.dimen.cafebar_content_padding_side); int margin = builder.mContext.getResources().getDimensionPixelSize( R.dimen.cafebar_button_margin_start); params.setMargins(margin, 0, 0, 0); if (longAction) { params.setMargins(0, (side - padding), 0, 0); } if (builder.mPositiveText != null || builder.mNegativeText != null) { longAction = true; params.setMargins(0, (side - padding), 0, 0); } else { params.gravity = Gravity.CENTER_VERTICAL | Gravity.END; } button.setLayoutParams(params); if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { button.setBackgroundResource(dark ? R.drawable.cafebar_action_button_selector_dark : R.drawable.cafebar_action_button_selector); return button; } TypedValue outValue = new TypedValue(); builder.mContext.getTheme().resolveAttribute(longAction ? R.attr.selectableItemBackground : R.attr.selectableItemBackgroundBorderless, outValue, true); button.setBackgroundResource(outValue.resourceId); return button; } static boolean isContentMultiLines(@NonNull CafeBar.Builder builder) { DisplayMetrics metrics = new DisplayMetrics(); ((Activity) builder.mContext).getWindowManager().getDefaultDisplay().getMetrics(metrics); boolean tabletMode = builder.mContext.getResources().getBoolean(R.bool.cafebar_tablet_mode); int padding = (builder.mContext.getResources().getDimensionPixelSize(R.dimen.cafebar_content_padding_side) * 2); if (builder.mNeutralText != null && builder.mNegativeText == null && builder.mPositiveText == null && !isLongAction(builder.mNeutralText)) { padding += builder.mContext.getResources().getDimensionPixelSize(R.dimen.cafebar_button_margin_start); int actionPadding = builder.mContext.getResources().getDimensionPixelSize(R.dimen.cafebar_button_padding); TextView action = new TextView(builder.mContext); action.setTextSize(TypedValue.COMPLEX_UNIT_PX, builder.mContext.getResources() .getDimensionPixelSize(R.dimen.cafebar_content_text)); if (builder.getTypeface(CafeBar.FONT_NEUTRAL) != null) { action.setTypeface(builder.getTypeface(CafeBar.FONT_CONTENT)); } action.setPadding(actionPadding, 0, actionPadding, 0); action.setText(builder.mNeutralText.substring(0, builder.mNeutralText.length() > 10 ? 10 : builder.mNeutralText.length())); int widthMeasureSpec = View.MeasureSpec.makeMeasureSpec(metrics.widthPixels, View.MeasureSpec.AT_MOST); int heightMeasureSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED); action.measure(widthMeasureSpec, heightMeasureSpec); LogUtil.d("measured action width: " +action.getMeasuredWidth()); padding += action.getMeasuredWidth(); } if (builder.mIcon != null) { int icon = builder.mContext.getResources().getDimensionPixelSize(R.dimen.cafebar_icon_size); icon += builder.mContext.getResources().getDimensionPixelSize(R.dimen.cafebar_content_padding_top); padding += icon; } TextView textView = new TextView(builder.mContext); textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, builder.mContext.getResources() .getDimension(R.dimen.cafebar_content_text)); textView.setPadding(padding, 0, 0, 0); if (builder.getTypeface(CafeBar.FONT_CONTENT) != null) { textView.setTypeface(builder.getTypeface(CafeBar.FONT_CONTENT)); } if (builder.mSpannableBuilder != null) { textView.setText(builder.mSpannableBuilder, TextView.BufferType.SPANNABLE); } else { textView.setText(builder.mContent); } int maxWidth = metrics.widthPixels; if (builder.mFloating || tabletMode) { maxWidth = builder.mContext.getResources().getDimensionPixelSize(R.dimen.cafebar_floating_max_width); } int widthMeasureSpec = View.MeasureSpec.makeMeasureSpec(maxWidth, View.MeasureSpec.AT_MOST); int heightMeasureSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED); textView.measure(widthMeasureSpec, heightMeasureSpec); return textView.getLineCount() > 1; } @Nullable static Drawable getDrawable(@NonNull Context context, @DrawableRes int res) { try { Drawable drawable = AppCompatDrawableManager.get().getDrawable(context, res); return drawable.mutate(); } catch (OutOfMemoryError e) { return null; } } @Nullable static Drawable toDrawable(@NonNull Context context, @Nullable Bitmap bitmap) { try { if (bitmap == null) return null; return new BitmapDrawable(context.getResources(), bitmap); } catch (OutOfMemoryError e) { return null; } } @Nullable private static Drawable getResizedDrawable(@NonNull Context context, @Nullable Drawable drawable, int color, boolean tint) { try { if (drawable == null) { LogUtil.d("drawable: null"); return null; } if (tint) { drawable.setColorFilter(color, PorterDuff.Mode.SRC_IN); drawable.mutate(); } int size = context.getResources().getDimensionPixelSize(R.dimen.cafebar_icon_size); Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); drawable.draw(canvas); return new BitmapDrawable(context.getResources(), Bitmap.createScaledBitmap(bitmap, size, size, true)); } catch (Exception | OutOfMemoryError e) { LogUtil.e(Log.getStackTraceString(e)); return null; } } static int getNavigationBarHeight(@NonNull Context context) { Point appUsableSize = getAppUsableScreenSize(context); Point realScreenSize = getRealScreenSize(context); if (appUsableSize.x < realScreenSize.x) { Point point = new Point(realScreenSize.x - appUsableSize.x, appUsableSize.y); return point.x; } if (appUsableSize.y < realScreenSize.y) { Point point = new Point(appUsableSize.x, realScreenSize.y - appUsableSize.y); return point.y; } return 0; } private static Point getAppUsableScreenSize(@NonNull Context context) { WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); Display display = windowManager.getDefaultDisplay(); Point size = new Point(); display.getSize(size); return size; } private static Point getRealScreenSize(@NonNull Context context) { WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); Display display = windowManager.getDefaultDisplay(); Point size = new Point(); if (Build.VERSION.SDK_INT >= 17) { display.getRealSize(size); } else if (Build.VERSION.SDK_INT >= 14) { try { size.x = (Integer) Display.class.getMethod("getRawWidth").invoke(display); size.y = (Integer) Display.class.getMethod("getRawHeight").invoke(display); } catch (Exception e) { LogUtil.e(Log.getStackTraceString(e)); } } return size; } static boolean isLongAction(@Nullable String action) { return action != null && action.length() > 10; } static int getAccentColor(Context context, int defaultColor) { if (context == null) { LogUtil.e("getAccentColor() context is null"); return defaultColor; } TypedValue typedValue = new TypedValue(); Resources.Theme theme = context.getTheme(); theme.resolveAttribute(R.attr.colorAccent, typedValue, true); return typedValue.data; } static int getTitleTextColor(@ColorInt int color) { double darkness = 1-(0.299*Color.red(color) + 0.587*Color.green(color) + 0.114*Color.blue(color))/255; return (darkness < 0.35) ? getDarkerColor(color) : Color.WHITE; } static int getSubTitleTextColor(@ColorInt int color) { int titleColor = getTitleTextColor(color); int alpha2 = Math.round(Color.alpha(titleColor) * 0.7f); int red = Color.red(titleColor); int green = Color.green(titleColor); int blue = Color.blue(titleColor); return Color.argb(alpha2, red, green, blue); } private static int getDarkerColor(@ColorInt int color) { float[] hsv = new float[3]; Color.colorToHSV(color, hsv); hsv[2] *= 0.25f; return Color.HSVToColor(hsv); } static int getColor(@NonNull Context context, int color) { try { return ContextCompat.getColor(context, color); } catch (Exception e) { LogUtil.e(Log.getStackTraceString(e)); return color; } } @Nullable static Typeface getTypeface(@NonNull Context context, String fontName) { try { return Typeface.createFromAsset(context.getAssets(), "fonts/" +fontName); } catch (Exception e) { LogUtil.e(Log.getStackTraceString(e)); } return null; } }
ee81dbcad312c9fb724f0eef8acfae1e58e96fb3
ab414b4f08ba35be1461a16f9ae4ce4bd1de5017
/Examen1Ej2/src/com/company/CasaPintar.java
4fe4867c1ff45809d80ba3cf554d07094dd03b96
[]
no_license
Corpexin/multi-thread
600888dc7eb8d3c1e3836fc8224d72410e101722
812d51e493257d11d18b79b4fd324142951057af
refs/heads/master
2021-01-10T18:00:44.147990
2016-02-07T23:17:27
2016-02-07T23:17:27
43,803,243
1
1
null
null
null
null
UTF-8
Java
false
false
836
java
package com.company; //Created by corpex, by the Grace of God, on 04/12/2015. import java.text.SimpleDateFormat; import java.util.Date; import java.util.Random; import java.util.concurrent.Callable; import java.util.concurrent.TimeUnit; public class CasaPintar implements Callable<String>{ Random rnd; int numCasa; public CasaPintar(int numCasa){ rnd = new Random(); this.numCasa = numCasa; } @Override public String call() { SimpleDateFormat formato = new SimpleDateFormat("HH:mm:ss"); try { TimeUnit.SECONDS.sleep(rnd.nextInt(3)+2); //tiempo en ser pintada 2-5 segundos } catch (InterruptedException e) { e.printStackTrace(); } return "Numero de casa: "+numCasa +" - Hora Finalizacion: "+ formato.format(new Date()); } }
3188b851f0cfd72bbe85e6659e1f640b9d4307f0
ce33e29fa32a263c8c2950c798a7e8beb7e5c44a
/TrsahNew/app/src/main/java/com/trashnew/trsahnew/view/MenuView.java
8182de36127a3c435f36e90b2d98ac2c020a3809
[]
no_license
Wwqf/Garbage-classification
44dc0ac85cbdcdbf8ec4b6133783784ad57ab07d
5c8a2380156a4ca15c896f25bf26b1a178239d98
refs/heads/master
2021-01-13T22:51:23.604567
2020-02-23T13:21:47
2020-02-23T13:21:47
242,519,959
1
0
null
null
null
null
UTF-8
Java
false
false
4,813
java
package com.trashnew.trsahnew.view; import android.graphics.Canvas; import android.graphics.Point; import android.nfc.Tag; import android.util.Log; import android.view.MotionEvent; import com.trashnew.trsahnew.R; import com.trashnew.trsahnew.activity.MainActivity; import com.trashnew.trsahnew.consts.ConstMenuPosition; import com.trashnew.trsahnew.dao.CheckPointDataDao; import com.trashnew.trsahnew.dao.MedalDataDao; import com.trashnew.trsahnew.dao.data.CheckPointData; import com.trashnew.trsahnew.entity.medal.SquareBox; import com.trashnew.trsahnew.entity.menu.CheckPointIcon; import com.trashnew.trsahnew.entity.menu.MedalButton_Menu; import com.trashnew.trsahnew.entity.play.Dialog; import com.trashnew.trsahnew.model.GameState; import com.trashnew.trsahnew.util.DialogText; import com.trashnew.trsahnew.util.ImageProcess; import java.util.ArrayList; public class MenuView { private ArrayList<CheckPointIcon> checkPointIcons; private MedalButton_Menu medalButtonMenu; private CheckPointData currentCheckPoint; private CheckPointData nextCheckPoint; private SquareBox handBoxIcon; private Dialog dialog; private boolean isDialog = false; private GameView father; public MenuView(GameView father) { this.father = father; CheckPointDataDao.getInstance(MainActivity.main).update(4, true); CheckPointDataDao.getInstance(MainActivity.main).update(9, true); initCheckPoint(); initMedalButton(); initHandBoxIcon(); initDialog(); } private void initCheckPoint() { checkPointIcons = new ArrayList<>(); ArrayList<Point> checkPointPositions = ConstMenuPosition.getIconPositionGroup(); ArrayList<CheckPointData> checkPointData = CheckPointDataDao.getInstance(MainActivity.main).getCheckPointData(); for (int l = 0; l < checkPointPositions.size(); l++) { checkPointIcons.add(new CheckPointIcon( ImageProcess.getImage(R.drawable.level), checkPointPositions.get(l), checkPointData.get(l) )); } } private void initMedalButton() { medalButtonMenu = new MedalButton_Menu( ImageProcess.getImage(R.drawable.medal), ImageProcess.getImage(R.drawable.medal_choice) ); medalButtonMenu.set(new Point( (int) (ImageProcess.getScreenWidthPixels() - medalButtonMenu.getWidth() + ImageProcess.getScreenWidthPixels() * 0.1), (int) (ImageProcess.getScreenHeightPixels() - medalButtonMenu.getHeight() + ImageProcess.getScreenHeightPixels() * 0.05) )); } private void initHandBoxIcon() { handBoxIcon = new SquareBox( new Point(90, 30), 60, 0xFF070938, 0xFFFFFFFF, 0xFF5a479f, 0x666a59a8,0xFFf8ca74, "图鉴" ); } private void initDialog() { dialog = new Dialog(ImageProcess.getImage(R.drawable.dialog)); } public void draw(Canvas canvas) { for (CheckPointIcon icon : checkPointIcons) { icon.draw(canvas); } medalButtonMenu.draw(canvas); handBoxIcon.draw(canvas); if (isDialog) { dialog.draw(canvas, DialogText.checkPointNotOpen()); } } public boolean onTouchEvent(MotionEvent event) { // 点击dialog if (dialog.isClickOkButton(event)) { isDialog = false; return true; } // 打开勋章界面 if (medalButtonMenu.onTouchEvent(event)) { GameView.gameState = GameState.GAME_MEDAL; return true; } // 打开游戏界面 for (CheckPointIcon icon : checkPointIcons) { if (icon.onTouchEvent(event)) { // 可玩 if (icon.isPlayed()) { currentCheckPoint = icon.getCheckPointData(); father.setPlayView(new PlayView(this, icon.getCheckPointData())); GameView.gameState = GameState.GAME_PLAY; } else { isDialog = true; } return true; } } return false; } public void openNextCheckPoint() { for (int l = 0; l < checkPointIcons.size() - 1; l++) { if (currentCheckPoint == checkPointIcons.get(l).getCheckPointData()) { nextCheckPoint = checkPointIcons.get(l + 1).getCheckPointData(); } } Log.e(getClass().getName() + "___", nextCheckPoint.get_id() + " is played."); if (currentCheckPoint.get_star() >= 2) { nextCheckPoint.set_isPlayed(true); CheckPointDataDao.getInstance(MainActivity.main).update(nextCheckPoint.get_id(), true); } } }
9f080cdff182bcc9af776ef571311581c80cc1b9
c931b7f90ae06057d25145484ba2e16e8ba94247
/src/br/univel/interfacesclassesabstratas/Acoes.java
470a5902fcb88fc91802975f86138ec64795cf88
[]
no_license
evandro-96/TrabalhoBimestral
96dd46a1426ab34c7905833329cc3a4ce81ceb78
15b5e68c7404597702936989c044baed0544d82d
refs/heads/master
2021-01-01T05:19:00.773136
2016-05-04T01:13:32
2016-05-04T01:13:32
56,729,100
0
0
null
null
null
null
UTF-8
Java
false
false
253
java
package br.univel.interfacesclassesabstratas; import java.util.List; public interface Acoes<T,K> { public void salvar(T t); public T buscar(K k); public void atualizar(T t); public void excluir(K k); public List<T> listarTodos(); }
403f0549055d3c6db3ceec82540243518452b628
836f0aef423040a92b9608db40ea6b2c55957fba
/app/src/main/java/com/emobi/bjaindoc/MondayFragment.java
7576151885b1f7059125840811bbb60e5350f0be
[]
no_license
vishwakarmasunil68/BjainDoc
328dc0753449492d42a5e484b4bff701969f02a4
65e9293dc26075c37c976350ac5371066edaf40d
refs/heads/master
2021-01-01T18:45:31.193300
2017-07-26T13:48:24
2017-07-26T13:48:24
98,427,865
0
0
null
null
null
null
UTF-8
Java
false
false
52,597
java
package com.emobi.bjaindoc; import android.app.ProgressDialog; import android.content.Intent; import android.graphics.Color; import android.graphics.Typeface; import android.os.AsyncTask; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import org.apache.http.NameValuePair; import org.apache.http.ParseException; import org.apache.http.message.BasicNameValuePair; import org.json.JSONArray; import org.json.JSONObject; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import patient_side.UsersAdapter_Serach_Doc; public class MondayFragment extends Fragment implements View.OnClickListener{ LinearLayout lineartop,linearmid,linearbottom; ImageView mimageview,aimageview,eimageview; ArrayList<String> arraylisttime; TextView sixam,sixthirtyam,sevenam,seventhirtyam,eightam,eightthirtyam,nineam,ninethirtyam,tenam,tenthirtyam,elevenam,eleventhirtyam,twelveam,twelvethirtypm, onepm,onethirtypm,twopm,twotpm,threepm,threetpm,fourpm,fourtpm,fivepm,fivetpm,sixpm, sixtpm,sevenpm,seventpm,seventhirtypm,eightpm,eightthirtypm,ninepm,ninethirtypm; public static String appointment_time,appointment_date; public static Boolean monday; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View rootview= inflater.inflate(R.layout.fragment_monday, container, false); lineartop =(LinearLayout) rootview.findViewById(R.id.lineartop); linearmid =(LinearLayout) rootview.findViewById(R.id.linearmid); linearbottom =(LinearLayout) rootview.findViewById(R.id.linearbottom); arraylisttime = new ArrayList<String>(); sixam=(TextView)rootview.findViewById(R.id.sixam); sixthirtyam=(TextView)rootview.findViewById(R.id.sixthirtyam); sevenam=(TextView)rootview.findViewById(R.id.sevenam); seventhirtyam=(TextView)rootview.findViewById(R.id.seventhirtyam); eightam=(TextView)rootview.findViewById(R.id.eightam); eightthirtyam=(TextView)rootview.findViewById(R.id.eightthirtyam); nineam=(TextView)rootview.findViewById(R.id.nineam); ninethirtyam=(TextView)rootview.findViewById(R.id.ninethirtyam); tenam=(TextView)rootview.findViewById(R.id.tenam); tenthirtyam=(TextView)rootview.findViewById(R.id.tenthirtyam); elevenam=(TextView)rootview.findViewById(R.id.elevenam); eleventhirtyam=(TextView)rootview.findViewById(R.id.eleventhirtyam); twelveam=(TextView)rootview.findViewById(R.id.tweleveam); twelvethirtypm=(TextView)rootview.findViewById(R.id.twelevethirtypm); onepm=(TextView)rootview.findViewById(R.id.onepm); onethirtypm=(TextView)rootview.findViewById(R.id.onethirtypm); twopm=(TextView)rootview.findViewById(R.id.twopm); twotpm=(TextView)rootview.findViewById(R.id.twothirtypm); threepm=(TextView)rootview.findViewById(R.id.threepm); threetpm=(TextView)rootview.findViewById(R.id.teenthirtypm); fourpm=(TextView)rootview.findViewById(R.id.fourpm); fourtpm=(TextView)rootview.findViewById(R.id.fourthirtypm); fivepm=(TextView)rootview.findViewById(R.id.fivepm); fivetpm=(TextView)rootview.findViewById(R.id.fivethirtypm); sixpm=(TextView)rootview.findViewById(R.id.sixpm); sixtpm=(TextView)rootview.findViewById(R.id.sixthirtypm); sevenpm=(TextView)rootview.findViewById(R.id.sevenpm); seventpm=(TextView)rootview.findViewById(R.id.seventhirtypm); eightpm=(TextView)rootview.findViewById(R.id.eightpm); eightthirtypm=(TextView)rootview.findViewById(R.id.eightthirtypm); ninepm=(TextView)rootview.findViewById(R.id.ninepm); ninethirtypm=(TextView)rootview.findViewById(R.id.ninethirtypm); mimageview =(ImageView) rootview.findViewById(R.id.mimg); aimageview = (ImageView) rootview.findViewById(R.id.aimg); eimageview = (ImageView) rootview.findViewById(R.id.eimg); Typeface tf1= Typeface.createFromAsset(getActivity().getAssets(),"fonts/Roboto-Regular.ttf"); sixam.setTypeface(tf1); sixthirtyam.setTypeface(tf1); sevenam.setTypeface(tf1); seventhirtyam.setTypeface(tf1); eightam.setTypeface(tf1); eightthirtyam.setTypeface(tf1); nineam.setTypeface(tf1); ninethirtyam.setTypeface(tf1); tenam.setTypeface(tf1); tenthirtyam.setTypeface(tf1); elevenam.setTypeface(tf1); eleventhirtyam.setTypeface(tf1); twelveam.setTypeface(tf1); twelvethirtypm.setTypeface(tf1); onepm.setTypeface(tf1); onethirtypm.setTypeface(tf1); twopm.setTypeface(tf1); twotpm.setTypeface(tf1); threepm.setTypeface(tf1); threetpm.setTypeface(tf1); fourpm.setTypeface(tf1); fourtpm.setTypeface(tf1); fivepm.setTypeface(tf1); fivetpm.setTypeface(tf1); sixpm.setTypeface(tf1); sixtpm.setTypeface(tf1); sevenpm.setTypeface(tf1); seventpm.setTypeface(tf1); eightpm.setTypeface(tf1); eightthirtypm.setTypeface(tf1); ninepm.setTypeface(tf1); ninethirtypm.setTypeface(tf1); sixam.setOnClickListener(this); sixthirtyam.setOnClickListener(this); sevenam.setOnClickListener(this); seventhirtyam.setOnClickListener(this); eightam.setOnClickListener(this); eightthirtyam.setOnClickListener(this); nineam.setOnClickListener(this); ninethirtyam.setOnClickListener(this); tenam.setOnClickListener(this); tenthirtyam.setOnClickListener(this); elevenam.setOnClickListener(this); eleventhirtyam.setOnClickListener(this); twelveam.setOnClickListener(this); twelvethirtypm.setOnClickListener(this); onepm.setOnClickListener(this); onethirtypm.setOnClickListener(this); twopm.setOnClickListener(this); twotpm.setOnClickListener(this); threepm.setOnClickListener(this); threetpm.setOnClickListener(this); fourpm.setOnClickListener(this); fourtpm.setOnClickListener(this); fivepm.setOnClickListener(this); fivetpm.setOnClickListener(this); sixpm.setOnClickListener(this); sixtpm.setOnClickListener(this); sevenpm.setOnClickListener(this); seventpm.setOnClickListener(this); eightpm.setOnClickListener(this); eightthirtypm.setOnClickListener(this); ninepm.setOnClickListener(this); ninethirtypm.setOnClickListener(this); /*Date dt = new Date("09:00:AM"); SimpleDateFormat sdf = new SimpleDateFormat("hh:mm aa"); String time1 = sdf.format(dt); Date dt1 = new Date("11:00:AM"); SimpleDateFormat sdf1 = new SimpleDateFormat("hh:mm aa"); String time2 = sdf.format(dt);*/ /*Date dt = new Date("09:00 AM"); SimpleDateFormat timeFormatter = new SimpleDateFormat("h:mm a"); String displayValue = timeFormatter.format(dt);*/ String string1 = "09:00 AM"; try { // SimpleDateFormat df = new SimpleDateFormat("hh:mm aa"); // SimpleDateFormat df = new SimpleDateFormat("hh:aa"); SimpleDateFormat df = new SimpleDateFormat("HH:mm"); Date d1 = df.parse(UsersAdapter_Serach_Doc.avl_start_time1_morn); Calendar c1 = GregorianCalendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); c1.setTime(d1); String str1 = sdf.format(c1.getTime()); Date d2 = df.parse(UsersAdapter_Serach_Doc.avl_end_time1_morn); Calendar c2 = GregorianCalendar.getInstance(); SimpleDateFormat sd2 = new SimpleDateFormat("HH:mm:ss"); c2.setTime(d2); String st2 = sd2.format(c2.getTime()); String startTime1 = UsersAdapter_Serach_Doc.avl_start_time1_morn; String endtime1 = UsersAdapter_Serach_Doc.avl_end_time1_morn; String dateStr = "Jul 27, 2011 8:35:29 AM"; /*DateFormat readFormat = new SimpleDateFormat( "MMM dd, yyyy hh:mm:ss aa"); DateFormat writeFormat = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss");*/ DateFormat readFormat = new SimpleDateFormat("hh:mm aa"); DateFormat writeFormat = new SimpleDateFormat("HH:mm"); Date date1 = null; Date date= null; try { date = readFormat.parse(startTime1); date1 = readFormat.parse(endtime1); } catch (ParseException e) { e.printStackTrace(); } if (date != null) { String formattedDatefrom = writeFormat.format(date); String formattedDateto = writeFormat.format(date1); getTime(formattedDatefrom,formattedDateto); Log.e("formateddates",formattedDatefrom); Log.e("formattedDateto",formattedDateto); } Log.e("c1.getTime()",str1 + " "+ st2); } catch (Exception e){ Log.d("error",e.toString()); e.printStackTrace(); } try { SimpleDateFormat df = new SimpleDateFormat("HH:mm"); Date d1 = df.parse(UsersAdapter_Serach_Doc.avl_start_time1_afternoon); Calendar c1 = GregorianCalendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); c1.setTime(d1); String str1 = sdf.format(c1.getTime()); Date d2 = df.parse(UsersAdapter_Serach_Doc.avl_end_time1_afternoon); Calendar c2 = GregorianCalendar.getInstance(); SimpleDateFormat sdf2 = new SimpleDateFormat("HH:mm:ss"); c2.setTime(d2); String st2 = sdf2.format(c2.getTime()); getTimeaftr(UsersAdapter_Serach_Doc.avl_start_time1_afternoon, UsersAdapter_Serach_Doc.avl_end_time1_afternoon); Log.e("c1.getTime()",str1 + " "+ st2); } catch (Exception e){ e.printStackTrace(); Log.e("c1.getTime()","getTime()"); } try { SimpleDateFormat df = new SimpleDateFormat("HH:mm"); Date d1 = df.parse(UsersAdapter_Serach_Doc.avl_start_time1_even); Calendar c1 = GregorianCalendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); c1.setTime(d1); String str1 = sdf.format(c1.getTime()); Date d2 = df.parse(UsersAdapter_Serach_Doc.avl_end_time1_even); Calendar c2 = GregorianCalendar.getInstance(); SimpleDateFormat sdf2 = new SimpleDateFormat("HH:mm:ss"); c2.setTime(d2); String st2 = sdf2.format(c2.getTime()); String startTime1 = UsersAdapter_Serach_Doc.avl_start_time1_even; String endtime1 = UsersAdapter_Serach_Doc.avl_end_time1_even; DateFormat readFormat = new SimpleDateFormat("hh:mm aa"); DateFormat writeFormat = new SimpleDateFormat("HH:mm"); Date date1 = null; Date date= null; try { date = readFormat.parse(startTime1); date1 = readFormat.parse(endtime1); } catch (ParseException e) { e.printStackTrace(); } if (date != null) { String formattedDatefrom = writeFormat.format(date); String formattedDateto = writeFormat.format(date1); getTimeeven(formattedDatefrom,formattedDateto); Log.e("formateddates",formattedDatefrom); Log.e("formattedDateto",formattedDateto); } // getTimeeven(UsersAdapter_Serach_Doc.avl_start_time1_even,UsersAdapter_Serach_Doc.avl_end_time1_even); Log.e("c1.getTime()",str1 + " "+ st2); } catch (Exception e){ e.printStackTrace(); } // getTime(time1,"11:00 AM"); new CallServices1().execute(ApiConfig.DOCTOR_APPO_INFO); mimageview.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (lineartop.getVisibility()==View.VISIBLE){ lineartop.setVisibility(View.GONE); mimageview.setImageDrawable(getResources().getDrawable(R.drawable.addplus)); } else { lineartop.setVisibility(View.VISIBLE); mimageview.setImageDrawable(getResources().getDrawable(R.drawable.remomins)); } } }); aimageview.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (linearmid.getVisibility()==View.VISIBLE){ linearmid.setVisibility(View.GONE); aimageview.setImageDrawable(getResources().getDrawable(R.drawable.addplus)); } else { linearmid.setVisibility(View.VISIBLE); aimageview.setImageDrawable(getResources().getDrawable(R.drawable.remomins)); } } }); eimageview.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (linearbottom.getVisibility()==View.VISIBLE){ linearbottom.setVisibility(View.GONE); eimageview.setImageDrawable(getResources().getDrawable(R.drawable.addplus)); } else { linearbottom.setVisibility(View.VISIBLE); eimageview.setImageDrawable(getResources().getDrawable(R.drawable.remomins)); } } }); return rootview; } public void refresh() { new CallServices1().execute(ApiConfig.DOCTOR_APPO_INFO); } /*@Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == 1) { if (resultCode == getActivity().RESULT_OK) { String result = data.getStringExtra("result1"); Log.e("result", result); refresh(); } if (resultCode == getActivity().RESULT_CANCELED) { //Write your code if there's no result } }// }*/ @Override public void onClick(View v) { switch (v.getId()){ case R.id.sixam: appointment_time="06:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; // new CallServices().execute(ApiConfig.DOCTOR_ADD_APPO_INFO); startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.sixthirtyam: appointment_time="06:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; // new CallServices().execute(ApiConfig.DOCTOR_ADD_APPO_INFO); startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.sevenam: appointment_time="07:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.seventhirtyam: appointment_time="07:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.eightam: appointment_time="08:00:00"; appointment_date=UtilsValidate.getCurrentDate(); startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.eightthirtyam: appointment_time="08:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.nineam: appointment_time="09:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.ninethirtyam: appointment_time="09:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.tenam: appointment_time="10:00:00"; appointment_date=UtilsValidate.getCurrentDate(); startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.tenthirtyam: appointment_time="10:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.elevenam: appointment_time="11:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.eleventhirtyam: appointment_time="11:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.tweleveam: appointment_time="12:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.twelevethirtypm: appointment_time="12:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.onepm: appointment_time="13:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.onethirtypm: appointment_time="13:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.twopm: appointment_time="14:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.twothirtypm: appointment_time="14:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.threepm: appointment_time="15:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.teenthirtypm: appointment_time="15:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.fourpm: appointment_time="16:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.fourthirtypm: appointment_time="16:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.fivepm: appointment_time="17:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); getActivity().finish(); break; case R.id.fivethirtypm: appointment_time="17:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.sixpm: appointment_time="18:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.sixthirtypm: appointment_time="18:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.sevenpm: appointment_time="19:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.seventhirtypm: appointment_time="19:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); getActivity().finish(); break; case R.id.eightpm: appointment_time="20:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); getActivity().finish(); break; case R.id.eightthirtypm: appointment_time="20:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); getActivity().finish(); break; case R.id.ninepm: appointment_time="21:00:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; case R.id.ninethirtypm: appointment_time="21:30:00"; appointment_date=UtilsValidate.getCurrentDate(); monday=true; startActivity(new Intent(getActivity(),AppointmentDetails.class)); break; default: return; } getActivity().finish(); } public class CallServices1 extends AsyncTask<String, String, String> { ProgressDialog pd; ArrayList<NameValuePair> namevaluepair = new ArrayList<NameValuePair>(); String result; String tag; @Override protected void onPreExecute() { // TODO Auto-generated method stub super.onPreExecute(); pd = new ProgressDialog(getActivity()); pd.setMessage("Working ..."); pd.setIndeterminate(false); pd.setCancelable(false); pd.hide(); } @SuppressWarnings("deprecation") @Override protected String doInBackground(String... params) { // TODO Auto-generated method stub namevaluepair.add(new BasicNameValuePair("doc_id", UsersAdapter_Serach_Doc.reg_id)); try { result = Util.executeHttpPost(params[0], namevaluepair); Log.e("result", result.toString()); } catch (Exception e) { e.printStackTrace(); } return result; } @Override protected void onPostExecute(String result) { // TODO Auto-generated method stub super.onPostExecute(result); if (pd != null) { pd.dismiss(); } if (result != null) { Log.e("result", result.toString()); try { JSONArray jsonArray = new JSONArray(result); for (int i=0; i<jsonArray.length();i++) { Log.e("jsonArray","aray:-"+ jsonArray.toString()); JSONObject jsonObject = jsonArray.getJSONObject(i); String cudtae = UtilsgetCurrentDate.getCurrentDate(); String date = jsonObject.getString("a_date"); ArrayList<String> arrayList = new ArrayList<String>(); arrayList.add(date); for (int i1 = 0; i1 < arrayList.size(); i1++) { if (arrayList.contains(cudtae)) { String time = jsonObject.getString("a_time"); arraylisttime.add(time); Log.e("arraylisttime", arraylisttime.toString()); // for (int i2 = 0; i2 < arraylisttime.size(); i2++) { if (arraylisttime.contains("06:00:00")) { sixam.setClickable(false); sixam.setTextColor(Color.RED); } if (arraylisttime.contains("06:30:00")) { sixthirtyam.setClickable(false); sixthirtyam.setTextColor(Color.RED); } if (arraylisttime.contains("07:00:00")) { sevenam.setClickable(false); sevenam.setTextColor(Color.RED); } if (arraylisttime.contains("07:30:00")) { seventhirtyam.setClickable(false); seventhirtyam.setTextColor(Color.RED); } if (arraylisttime.contains("08:00:00")) { eightam.setClickable(false); eightam.setTextColor(Color.RED); } if (arraylisttime.contains("08:30:00")) { eightthirtyam.setClickable(false); eightthirtyam.setTextColor(Color.RED); } if (arraylisttime.contains("09:00:00")) { nineam.setClickable(false); nineam.setTextColor(Color.RED); } if (arraylisttime.contains("09:30:00")) { ninethirtyam.setClickable(false); ninethirtyam.setTextColor(Color.RED); } if (arraylisttime.contains("10:00:00")) { tenam.setClickable(false); tenam.setTextColor(Color.RED); } if (arraylisttime.contains("10:30:00")) { tenthirtyam.setClickable(false); tenthirtyam.setTextColor(Color.RED); } if (arraylisttime.contains("11:00:00")) { elevenam.setClickable(false); elevenam.setTextColor(Color.RED); } if (arraylisttime.contains("11:30:00")) { eleventhirtyam.setClickable(false); eleventhirtyam.setTextColor(Color.RED); } if (arraylisttime.contains("12:00:00")) { twelveam.setClickable(false); twelveam.setTextColor(Color.RED); } if (arraylisttime.contains("12:30:00")) { twelvethirtypm.setClickable(false); twelvethirtypm.setTextColor(Color.RED); } if (arraylisttime.contains("13:00:00")) { onepm.setClickable(false); onepm.setTextColor(Color.RED); } if (arraylisttime.contains("13:30:00")) { onethirtypm.setClickable(false); onethirtypm.setTextColor(Color.RED); } if (arraylisttime.contains("14:00:00")) { twopm.setClickable(false); twopm.setTextColor(Color.RED); } if (arraylisttime.contains("14:30:00")) { twotpm.setClickable(false); twotpm.setTextColor(Color.RED); } if (arraylisttime.contains("15:00:00")) { threetpm.setClickable(false); threetpm.setTextColor(Color.RED); } if (arraylisttime.contains("15:30:00")) { threepm.setClickable(false); threepm.setTextColor(Color.RED); } if (arraylisttime.contains("16:00:00")) { fourpm.setClickable(false); fourpm.setTextColor(Color.RED); } if (arraylisttime.contains("16:30:00")) { fourtpm.setClickable(false); fourtpm.setTextColor(Color.RED); } if (arraylisttime.contains("17:00:00")) { fivepm.setClickable(false); fivepm.setTextColor(Color.RED); } if (arraylisttime.contains("17:30:00")) { fivetpm.setClickable(false); fivetpm.setTextColor(Color.RED); } if (arraylisttime.contains("18:00:00")) { sixpm.setClickable(false); sixpm.setTextColor(Color.RED); } if (arraylisttime.contains("18:30:00")) { sixtpm.setClickable(false); sixtpm.setTextColor(Color.RED); } if (arraylisttime.contains("19:00:00")) { sevenpm.setClickable(false); sevenpm.setTextColor(Color.RED); } if (arraylisttime.contains("19:30:00")) { seventpm.setClickable(false); seventpm.setTextColor(Color.RED); } if (arraylisttime.contains("20:00:00")) { eightpm.setClickable(false); eightpm.setTextColor(Color.RED); } if (arraylisttime.contains("20:30:00")) { eightthirtypm.setClickable(false); eightthirtypm.setTextColor(Color.RED); } if (arraylisttime.contains("21:00:00")) { ninepm.setClickable(false); ninepm.setTextColor(Color.RED); } if (arraylisttime.contains("21:30:00")) { ninethirtypm.setClickable(false); ninethirtypm.setTextColor(Color.RED); } // } } } } } catch (Exception e) { e.printStackTrace(); } } } } public void getTime(String startTime,String endTime){ try { SimpleDateFormat sdf=new SimpleDateFormat("hh:mm"); String someRandomTim = "06:00:00"; try{ Date d1=sdf.parse(someRandomTim); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); // System.out.println(); if(timechecking(d1, d2, d3 )){ sixam.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTim1 = "06:30:00"; try{ Date d1=sdf.parse(someRandomTim1); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); System.out.println(timechecking(d1, d2, d3 )); if(timechecking(d1, d2, d3 )){ sixthirtyam.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } Log.e("yes","yes"); String someRandomTim3 = "07:00:00"; try{ Date d1=sdf.parse(someRandomTim3); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ sevenam.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } Log.e("yes","yes"); //checkes whether the current time is between 14:49:00 and 20:11:13. System.out.println(true); String seventhirtyaam = "07:30:00"; try{ Date d1=sdf.parse(seventhirtyaam); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ seventhirtyam.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } Log.e("yes","yes"); System.out.println(true); String someRandomTim4 = "08:00:00"; try{ Date d1=sdf.parse(someRandomTim4); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ eightam.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } Log.e("yes","yes"); //checkes whether the current time is between 14:49:00 and 20:11:13. System.out.println(true); String someRandomTim5 = "08:30:00"; try{ Date d1=sdf.parse(someRandomTim5); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ eightthirtyam.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime = "09:00:00"; try{ Date d1=sdf.parse(someRandomTime); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ nineam.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime1 = "09:30:00"; try{ Date d1=sdf.parse(someRandomTime1); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ ninethirtyam.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime2 = "10:00:00"; try{ Date d1=sdf.parse(someRandomTime2); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ tenam.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime3 = "10:30:00"; try{ Date d1=sdf.parse(someRandomTime3); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ tenthirtyam.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime4 = "11:00:00"; try{ Date d1=sdf.parse(someRandomTime4); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ elevenam.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime5 = "11:30:00"; try{ Date d1=sdf.parse(someRandomTime5); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ eleventhirtyam.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } } catch (Exception e) { e.printStackTrace(); } } public static boolean timeIsBefore(Date d1, Date d2) { DateFormat f = new SimpleDateFormat("HH:mm:ss.SSS"); return f.format(d1).compareTo(f.format(d2)) < 0; } public static boolean timeIsAfter(Date d1,Date d2){ DateFormat f = new SimpleDateFormat("HH:mm:ss.SSS"); return f.format(d1).compareTo(f.format(d2)) > 0; } public static boolean sameTime(Date d1,Date d2){ DateFormat f = new SimpleDateFormat("HH:mm:ss.SSS"); return f.format(d1).compareTo(f.format(d2)) == 0; } public static boolean timechecking(Date d1,Date d2,Date d3){ if(sameTime(d1, d2)||sameTime(d1, d3)){ return true; } else{ if(timeIsBefore(d1, d3)&&timeIsAfter(d1, d2)){ return true; } else{ return false; } } } public void getTimeaftr(String startTime,String endTime){ SimpleDateFormat sdf=new SimpleDateFormat("hh:mm"); try { String someRandomTime = "12:00:00"; try{ Date d1=sdf.parse(someRandomTime); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ twelveam.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } Log.e("yes","yes"); System.out.println(true); String someRandomTime1 = "12:30:00"; Log.e("yes","yes"); try{ Date d1=sdf.parse(someRandomTime1); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ twelvethirtypm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } System.out.println(true); String someRandomTime2 = "13:00:00"; try{ Date d1=sdf.parse(someRandomTime2); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ onepm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime3 = "13:30:00"; try{ Date d1=sdf.parse(someRandomTime3); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ onethirtypm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime4 = "14:00:00"; try{ Date d1=sdf.parse(someRandomTime4); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ twopm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime5 = "14:30:00"; try{ Date d1=sdf.parse(someRandomTime5); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ twotpm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime6 = "15:00:00"; try{ Date d1=sdf.parse(someRandomTime6); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ threepm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime7 = "15:30:00"; try{ Date d1=sdf.parse(someRandomTime7); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ threetpm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime8 = "16:00:00"; try{ Date d1=sdf.parse(someRandomTime8); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ fourpm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime9 = "16:30:00"; try{ Date d1=sdf.parse(someRandomTime9); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ fourtpm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } } catch (Exception e) { e.printStackTrace(); } } public void getTimeeven(String startTime,String endTime){ SimpleDateFormat sdf=new SimpleDateFormat("hh:mm"); try { String string1 = startTime; String string2 = endTime; String someRandomTime1 = "17:00:00"; try{ Date d1=sdf.parse(someRandomTime1); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ fivepm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } Log.e("yes","yes"); //checkes whether the current time is between 14:49:00 and 20:11:13. System.out.println(true); String someRandomTime2 = "17:30:00"; try{ Date d1=sdf.parse(someRandomTime2); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ fivetpm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime3 = "18:00:00"; try{ Date d1=sdf.parse(someRandomTime3); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ sixpm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime4 = "18:30:00"; try{ Date d1=sdf.parse(someRandomTime4); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ sixtpm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime5 = "19:00:00"; try{ Date d1=sdf.parse(someRandomTime5); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ sevenpm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime6 = "19:30:00"; try{ Date d1=sdf.parse(someRandomTime6); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ seventpm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime7 = "20:00:00"; try{ Date d1=sdf.parse(someRandomTime7); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ eightpm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime8 = "20:30:00"; try{ Date d1=sdf.parse(someRandomTime8); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ eightthirtypm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime9 = "21:00:00"; try{ Date d1=sdf.parse(someRandomTime9); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ ninepm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } String someRandomTime10 = "21:30:00"; try{ Date d1=sdf.parse(someRandomTime10); Date d2=sdf.parse(startTime); Date d3=sdf.parse(endTime); if(timechecking(d1, d2, d3 )){ ninethirtypm.setVisibility(View.VISIBLE); } else{ } } catch(Exception e){ e.printStackTrace(); } } catch (Exception e) { e.printStackTrace(); } } }
[ "Sunil112!((#" ]
Sunil112!((#
239ad8c1aadd91676acca9e5902fbaef04fc5a61
19f7e40c448029530d191a262e5215571382bf9f
/decompiled/instagram/sources/p000X/C40661p1.java
a58b20ff1f55af2912a2dec3b3d3030692d40cc6
[]
no_license
stanvanrooy/decompiled-instagram
c1fb553c52e98fd82784a3a8a17abab43b0f52eb
3091a40af7accf6c0a80b9dda608471d503c4d78
refs/heads/master
2022-12-07T22:31:43.155086
2020-08-26T03:42:04
2020-08-26T03:42:04
283,347,288
18
1
null
null
null
null
UTF-8
Java
false
false
409
java
package p000X; import com.facebook.video.heroplayer.ipc.VideoPlayRequest; /* renamed from: X.1p1 reason: invalid class name and case insensitive filesystem */ public interface C40661p1 { public static final C40661p1 A00 = new C40671p2(); void BWB(VideoPlayRequest videoPlayRequest, String str); void BWC(VideoPlayRequest videoPlayRequest); void BWD(VideoPlayRequest videoPlayRequest); }
2a8a7377761bb8459a7ea03735073fb8fb25030c
d1ee5e3d34a0e8c9ef0fe3d967bda78ba2f1592f
/src/main/java/ar/edu/itba/pod/legajo51048/impl/MultithreadedSignalProcessor.java
9e2a129236378c3cf5f6aee0e68ce683f6eb6b31
[]
no_license
epintos/signal
f33b8237f5226a2806f9f08b110bc098d86195f4
3947c2d3ccf59295d73e8214f54ecd9e925fdfaf
refs/heads/master
2021-01-23T03:21:35.834304
2013-06-27T00:50:15
2013-06-27T00:50:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
20,849
java
package ar.edu.itba.pod.legajo51048.impl; import java.rmi.RemoteException; import java.util.ArrayList; import java.util.List; import java.util.Random; import java.util.concurrent.BlockingQueue; import java.util.concurrent.Callable; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.Semaphore; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import org.apache.log4j.Logger; import org.jgroups.Address; import ar.edu.itba.pod.api.NodeStats; import ar.edu.itba.pod.api.Result; import ar.edu.itba.pod.api.Result.Item; import ar.edu.itba.pod.api.SPNode; import ar.edu.itba.pod.api.Signal; import ar.edu.itba.pod.api.SignalProcessor; import ar.edu.itba.pod.legajo51048.Connection; import ar.edu.itba.pod.legajo51048.messages.Backup; import ar.edu.itba.pod.legajo51048.messages.FindRequest; import ar.edu.itba.pod.legajo51048.messages.SignalMessage; import ar.edu.itba.pod.legajo51048.messages.SignalMessageType; import ar.edu.itba.pod.legajo51048.workers.AcknowledgesAnalyzer; import ar.edu.itba.pod.legajo51048.workers.FindSimilarWorker; import ar.edu.itba.pod.legajo51048.workers.NotificationsAnalyzer; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.Lists; import com.google.common.collect.Multimap; import com.google.common.collect.Multimaps; /** * Implementation of a node that finds similar signals using multiple threads * and distributing the request. * * @author Esteban G. Pintos * */ public class MultithreadedSignalProcessor implements SPNode, SignalProcessor { // Node's signals private final BlockingQueue<Signal> signals; // Members in the cluster known by this node private BlockingQueue<Address> members; // Back ups of other node's signals private final Multimap<Address, Signal> backups; // Signals that have been distributed and node still waiting for ACK private final BlockingQueue<Signal> sendSignals; // Backups that have been distributed and node still waiting for ACK private final BlockingQueue<Backup> sendBackups; // Queue of notifications to analyze private final BlockingQueue<SignalMessage> notifications; // Queue of acknowledges or answers to analyze private final BlockingQueue<SignalMessage> acknowledges; // List containing the find similar requests send to other nodes private final ConcurrentMap<Integer, FindRequest> requests; // Processing threads private ExecutorService executor; private NotificationsAnalyzer notificationsAnalyzer; private AcknowledgesAnalyzer acknowledgesAnalyzer; private final int threadsQty; // Quantity of received find similar requests. Used for request id. private AtomicInteger receivedSignals = new AtomicInteger(0); // Connection implementation to a cluster private Connection connection = null; // Chunk size of signals/backups sent private static final int CHUNK_SIZE = 512; // Boolean indicating whether the node is degraded or not. private AtomicBoolean degradedMode = new AtomicBoolean(false); private Logger logger; public MultithreadedSignalProcessor(int threadsQty) { ArrayListMultimap<Address, Signal> list = ArrayListMultimap.create(); this.backups = Multimaps.synchronizedListMultimap(list); this.sendBackups = new LinkedBlockingQueue<Backup>(); this.sendSignals = new LinkedBlockingQueue<Signal>(); this.notifications = new LinkedBlockingQueue<SignalMessage>(); this.acknowledges = new LinkedBlockingQueue<SignalMessage>(); this.requests = new ConcurrentHashMap<Integer, FindRequest>(); this.signals = new LinkedBlockingQueue<Signal>(); this.executor = Executors.newFixedThreadPool(threadsQty); this.threadsQty = threadsQty; this.logger = Logger.getLogger("MultithreadedSignalProcessor"); } /******************** SPNODE IMPLEMENTATION ********************/ @Override public void join(String clusterName) throws RemoteException { if (connection != null) { throw new IllegalStateException("Already in cluster " + connection.getClusterName()); } if (!this.signals.isEmpty()) { throw new IllegalStateException( "Can't join a cluster because there are signals already stored"); } logger.debug("Joining cluster " + clusterName + " ..."); this.connection = new Connection(clusterName, this); this.members = new LinkedBlockingQueue<Address>(connection.getMembers()); this.initializeAnalyzers(); } @Override public void exit() throws RemoteException { logger.debug("Starting exit..."); if (connected()) { connection.disconnect(); if (getMembersQty() == 1) { connection.close(); } this.members = null; connection = null; } signals.clear(); backups.clear(); notifications.clear(); acknowledges.clear(); sendBackups.clear(); sendSignals.clear(); requests.clear(); receivedSignals = new AtomicInteger(0); degradedMode.set(false); try { if (notificationsAnalyzer != null) { notificationsAnalyzer.finish(); notificationsAnalyzer.interrupt(); notificationsAnalyzer.join(); } if (acknowledgesAnalyzer != null) { acknowledgesAnalyzer.finish(); acknowledgesAnalyzer.interrupt(); acknowledgesAnalyzer.join(); } executor.shutdown(); while (!executor.awaitTermination(1000, TimeUnit.MILLISECONDS)) ; this.executor = Executors.newFixedThreadPool(threadsQty); } catch (InterruptedException e) { } catch (Exception e) { } } @Override public NodeStats getStats() throws RemoteException { return new NodeStats( connected() ? "cluster " + connection.getClusterName() : "standalone", receivedSignals.longValue(), signals.size(), backups.size(), connected() ? (getMembersQty() == 1 ? true : degradedMode.get()) : true); } /** * Create and start notifications and acknowledge analyzer thread. */ private void initializeAnalyzers() { Semaphore semaphore1 = new Semaphore(0); Semaphore semaphore2 = new Semaphore(0); Semaphore semaphore3 = new Semaphore(0); this.notificationsAnalyzer = new NotificationsAnalyzer(signals, notifications, this, requests, backups, connection, members, semaphore1, semaphore2, semaphore3); this.acknowledgesAnalyzer = new AcknowledgesAnalyzer(acknowledges, sendSignals, sendBackups, requests, connection, semaphore1, semaphore2, semaphore3); this.notificationsAnalyzer.start(); this.acknowledgesAnalyzer.start(); } /******************** SIGNALPROCESSOR IMPLEMENTATION ********************/ @Override public void add(Signal signal) throws RemoteException { distributeNewSignal(signal); } @Override public Result findSimilarTo(Signal signal) throws RemoteException { if (signal == null) { throw new IllegalArgumentException("Signal cannot be null"); } while (connected() && getMembersQty() != 1 && degradedMode.get()) ; int requestId = receivedSignals.incrementAndGet(); Result result = null; if (connected() && getMembersQty() > 1) { Semaphore semaphore = new Semaphore(0); long timestamp = System.currentTimeMillis(); FindRequest request = new FindRequest(requestId, signal, Lists.newArrayList(members), semaphore, timestamp); this.requests.put(requestId, request); connection.broadcastMessage(new SignalMessage(signal, getMyAddress(), requestId, timestamp, SignalMessageType.FIND_SIMILAR)); result = findSimilarToAux(signal); // This while will wait for Results and will not finish until ALL // the results arrived (1-tolerance) try { while (!semaphore.tryAcquire(request.getQty(), 1000, TimeUnit.MILLISECONDS)) { logger.debug("Waiting for results of " + semaphore.availablePermits() + " nodes"); } } catch (InterruptedException e) { } if (request.retry()) { result = findSimilarToAux(signal); } List<Result> results = request.getResults(); if (results != null) { for (Result otherResult : results) { for (Item item : otherResult.items()) { result = result.include(item); } } } } else { result = findSimilarToAux(signal); } return result; } /******************** FIND SIMILAR AUXILIARY METHODS ********************/ /** * Find similars signals to signal and returns the Result to the node that * send the order. * * @param from * Node that send the find similar request * @param signal * Signal to analyze * @param id * Id of the request * @param timestamp * Timestamp of the resquest sent by from * @return Result of similar signals */ public void findMySimilars(Address from, Signal signal, int id, long timestamp) { Result result = findSimilarToAux(signal); // Exit could be called in the middle of this, and the principal node won't wait // for this result, so it has no sense to send this message. if (connected()) { connection.sendMessageTo(from, new SignalMessage(getMyAddress(), result, id, SignalMessageType.FIND_SIMILAR_RESULT, timestamp)); } } /** * Finds similar signals of signal * * @param signal * @return Result of similar signals */ private Result findSimilarToAux(Signal signal) { List<Callable<Result>> tasks = new ArrayList<Callable<Result>>(); try { BlockingQueue<Signal> copy = new LinkedBlockingQueue<Signal>( this.signals); for (int i = 0; i < threadsQty; i++) { // Generate a copy of the signals so they are not lost tasks.add(new FindSimilarWorker(signal, copy)); } List<Future<Result>> futures = executor.invokeAll(tasks); Result result = new Result(signal); for (Future<Result> future : futures) { Result r = future.get(); for (Item item : r.items()) { result = result.include(item); } } return result; } catch (InterruptedException e) { } catch (ExecutionException e) { } return null; } /******************** DISTRIBUTION METHODS ********************/ /** * Distributes a signal to a random node and the backup to another. If there * is only 1 node (this one), the signal is added to this node and the * backup also (if it is connected to a cluster). * * @param Signal * signal added **/ private void distributeNewSignal(Signal signal) { if (connected() && getMembersQty() != 1) { List<Address> users = Lists.newArrayList(members); int membersQty = getMembersQty(); Address futureOwner = users.get(random(membersQty)); if (getMyAddress().equals(futureOwner)) { this.signals.add(signal); } else { connection.sendMessageTo(futureOwner, new SignalMessage( getMyAddress(), signal, SignalMessageType.ADD_SIGNAL)); } distributeBackup(futureOwner, signal); } else { this.signals.add(signal); if (connected()) { this.backups.put(getMyAddress(), signal); } } } /** * Distributes randomly a backup of a signal. * * @param signalOwner * Owner of the signal * * @param signal * Signal being back up * */ protected void distributeBackup(Address signalOwner, Signal signal) { List<Address> users = Lists.newArrayList(members); int membersQty = getMembersQty(); int random = 0; while (users.get(random = random(membersQty)).equals(signalOwner)) ; Address futureBackupOwner = users.get(random); if (getMyAddress().equals(futureBackupOwner)) { this.backups.put(signalOwner, signal); } else { Backup backup = new Backup(signalOwner, signal); connection.sendMessageTo(futureBackupOwner, new SignalMessage( getMyAddress(), backup, SignalMessageType.ADD_BACK_UP)); } } /** * Distribute signals to a node. The quantity of signals distributed is * calculated according to the quantity of members in the cluster and the * message is divided in chunks of size CHUNK_SIZE. Backups are distributed * only if the quantity of members is 2. If the quantity of members is * greater than 2, then no backups will be distributed, owners will be * changed only. * * @param to * Destination node */ public void distributeSignals(Address to) { int sizeToDistribute = 0; BlockingQueue<Signal> copy = null; int membersQty = getMembersQty(); synchronized (this.signals) { if (this.signals.isEmpty()) { return; } sizeToDistribute = this.signals.size() / membersQty; copy = new LinkedBlockingQueue<Signal>(); this.signals.drainTo(copy, sizeToDistribute); } int chunks = copy.size() / CHUNK_SIZE + 1; int sent = 0; for (int i = 0; i < chunks; i++) { List<Signal> distSignals = new ArrayList<Signal>(); if (copy.drainTo(distSignals, CHUNK_SIZE) == 0) { break; } sent += distSignals.size(); if (!distSignals.isEmpty()) { connection.sendMessageTo(to, new SignalMessage(getMyAddress(), distSignals, SignalMessageType.ADD_SIGNALS)); } } try { // Waiting for ACKS for (int i = 0; i < sent; i++) { this.sendSignals.take(); } } catch (InterruptedException e) { } if (membersQty == 2) { distributeBackups(getMyAddress(), new LinkedBlockingQueue<Signal>( this.signals)); this.backups.get(getMyAddress()).removeAll(this.signals); } } /** * Distributes signals and backups. Sends a portion of them to every node in * the cluster, calculated randomly, dividing the messages into chunks of * CHUNK_SIZE. If this node is the only one in the cluster, the signals will * be added to it, and the backups also (If it is in the cluster). * * @param newSignals * Signals/backups being send */ public void distributeSignals(BlockingQueue<Signal> newSignals) { int sizeToDistribute = 0; if (newSignals.isEmpty()) { return; } if (connected() && getMembersQty() != 1) { int membersQty = getMembersQty(); List<Address> users = Lists.newArrayList(members); sizeToDistribute = newSignals.size() / membersQty; List<Address> chosen = new ArrayList<Address>(); Address myAddress = getMyAddress(); for (int j = 0; j < membersQty; j++) { int random = 0; while (chosen.contains(users.get(random = random(membersQty)))) ; Address futureOwner = users.get(random); chosen.add(futureOwner); BlockingQueue<Signal> copy = new LinkedBlockingQueue<Signal>(); if (j == membersQty - 1) { sizeToDistribute = newSignals.size(); } newSignals.drainTo(copy, sizeToDistribute); BlockingQueue<Signal> toBackup = new LinkedBlockingQueue<Signal>(); if (!futureOwner.equals(myAddress)) { int chunks = copy.size() / CHUNK_SIZE + 1; for (int i = 0; i < chunks; i++) { List<Signal> distSignals = new ArrayList<Signal>(); if (copy.drainTo(distSignals, CHUNK_SIZE) == 0) { break; } toBackup.addAll(distSignals); connection.sendMessageTo(futureOwner, new SignalMessage(getMyAddress(), distSignals, SignalMessageType.ADD_SIGNALS)); } try { for (int k = 0; k < toBackup.size(); k++) { this.sendSignals.take(); } } catch (InterruptedException e) { } distributeBackups(futureOwner, new LinkedBlockingQueue<Signal>(toBackup)); } else { BlockingQueue<Signal> auxCopy = new LinkedBlockingQueue<Signal>( copy); this.signals.addAll(auxCopy); distributeBackups(myAddress, auxCopy); } } } else { this.signals.addAll(newSignals); if (connected()) { this.backups.putAll(getMyAddress(), newSignals); } } } /** * Distributes signals backup to a ramdom node different from signalOwner. * * @param signalOwner * Owner of the signals being backup * @param signalsToBackup * Signals to backup */ protected void distributeBackups(Address signalOwner, BlockingQueue<Signal> signalsToBackup) { if (signalsToBackup.isEmpty()) { return; } int membersQty = getMembersQty(); List<Address> users = Lists.newArrayList(members); int sizeToDistribute = 0; sizeToDistribute = signalsToBackup.size(); Address myAddress = getMyAddress(); int random = 0; while (users.get(random = random(membersQty)).equals(signalOwner)) ; Address futureOwner = users.get(random); if (!futureOwner.equals(myAddress)) { int chunks = sizeToDistribute / CHUNK_SIZE + 1; int sent = 0; for (int j = 0; j < chunks; j++) { List<Signal> auxList = new ArrayList<Signal>(); signalsToBackup.drainTo(auxList, CHUNK_SIZE); List<Backup> backupList = new ArrayList<Backup>(); for (Signal s : auxList) { backupList.add(new Backup(signalOwner, s)); } sent += backupList.size(); if (!backupList.isEmpty()) { connection.sendMessageTo(futureOwner, new SignalMessage( getMyAddress(), SignalMessageType.ADD_BACK_UPS, backupList)); } } try { // Waiting for ACKS for (int i = 0; i < sent; i++) { this.sendBackups.take(); } } catch (InterruptedException e) { } } else { this.backups.putAll(signalOwner, signalsToBackup); } } /******************** CHANGE BACKUPS METHODS ********************/ /** * * If this node had a back up of signals, it will be changed by the new * owner. * * @param newOwner * New owner of the backup * @param oldOwner * Old owner of the signals * @param signals * Signals which are know backed up by a new owner. */ public void changeSignalsOwner(Address oldOwner, Address newOwner, List<Signal> signals) { synchronized (backups) { for (Signal signal : signals) { if (this.backups.get(oldOwner).remove(signal)) { this.backups.put(newOwner, signal); } } } } /******************** ADD SIGNAL/S METHODS ********************/ /** * * Adds a signal to this node and returns ADD_SIGNAL_ACK to "from" * * @param from * Node that send me the order to add the signal * @param signal * Signal to add */ public void addSignal(Signal signal) { this.signals.add(signal); } /** * Adds a list of signals to this node and returns ADD_SIGNALS_ACK. * * @param from * Node that send me the order * @param newSignals * New signals to add */ public void addSignals(Address from, List<Signal> newSignals) { this.signals.addAll(newSignals); connection.sendMessageTo(from, new SignalMessage(getMyAddress(), newSignals, SignalMessageType.ADD_SIGNALS_ACK)); } /******************** ADD BACKUP/S METHODS ********************/ /** * Adds a backup to this node and returns ADD_BACKUP_ACK * * @param from * Node that send me the order to add the backup * @param backup * New backup */ public void addBackup(Backup backup) { this.backups.put(backup.getAddress(), backup.getSignal()); } /** * Adds a list of backups to this node and returns ADD_BACKUPS_ACK * * @param from * Node that send me the order to add the backups * @param backupList * New backup list */ public void addBackups(Address from, List<Backup> backupList) { for (Backup backup : backupList) { this.backups.put(backup.getAddress(), backup.getSignal()); } connection.sendMessageTo(from, new SignalMessage(getMyAddress(), SignalMessageType.ADD_BACKUPS_ACK, backupList)); } /** * Adds a new notification. * * @param notification * New notification */ public void addNotification(SignalMessage notification) { notifications.add(notification); } /** * Adds a new acknowledge notification. * * @param acknowledge * New acknowledge notification */ public void addAcknowledge(SignalMessage acknowledge) { acknowledges.add(acknowledge); } /** * Calculates random value between 0 and limit. * * @param limit * @return Random number */ private int random(int limit) { Random random = new Random(); return random.nextInt(limit); } /** * Sets the degraded mode to a state. * * @param state * New state */ public void setDegradedMode(boolean state) { degradedMode.set(state); } /** * @return Quantity of members I know */ private int getMembersQty() { return this.members.size(); } /** * * @return True if this node is connected to a cluster */ private boolean connected() { return this.connection != null; } /** * Get this node address in the cluster, or null if it is not connected. * * @return Address */ private Address getMyAddress() { if (connected()) { return connection.getMyAddress(); } else { return null; } } }
752f6fab844404a4d29c63a86bddf9c6a3e30463
c1986ccc437bbb5cfe61a6d60ba4fad189d910c2
/src/T3/IS_RPG_MAS_39393_40581_41038/lib/JADE/src/FIPA/AgentIDHelper.java
efac008b2aa5251936614796abf192faf97d59f4
[]
no_license
dmr-goncalves/IS
7da569f0ae7350707dc3aec0c2cda1362aff4052
c948c8faa6c8a8b4af7f5ffd0d7bf1e1b8575b99
refs/heads/master
2021-01-21T20:16:11.745204
2017-06-10T15:53:35
2017-06-10T15:53:35
90,955,246
0
0
null
null
null
null
UTF-8
Java
false
false
4,182
java
/* * File: ./FIPA/AGENTIDHELPER.JAVA * From: FIPA.IDL * Date: Mon Sep 04 15:08:50 2000 * By: c:\Java\idltojava-win32\idltojava Java IDL 1.2 Nov 10 1997 13:52:11 */ package FIPA; public class AgentIDHelper { // It is useless to have instances of this class private AgentIDHelper() { } public static void write(org.omg.CORBA.portable.OutputStream out, FIPA.AgentID that) { out.write_string(that.name); { out.write_long(that.addresses.length); for (int __index = 0; __index < that.addresses.length; __index += 1) { out.write_string(that.addresses[__index]); } } { out.write_long(that.resolvers.length); for (int __index = 0; __index < that.resolvers.length; __index += 1) { FIPA.AgentIDHelper.write(out, that.resolvers[__index]); } } { out.write_long(that.userDefinedProperties.length); for (int __index = 0; __index < that.userDefinedProperties.length; __index += 1) { FIPA.PropertyHelper.write(out, that.userDefinedProperties[__index]); } } } public static FIPA.AgentID read(org.omg.CORBA.portable.InputStream in) { FIPA.AgentID that = new FIPA.AgentID(); that.name = in.read_string(); { int __length = in.read_long(); that.addresses = new String[__length]; for (int __index = 0; __index < that.addresses.length; __index += 1) { that.addresses[__index] = in.read_string(); } } { int __length = in.read_long(); that.resolvers = new FIPA.AgentID[__length]; for (int __index = 0; __index < that.resolvers.length; __index += 1) { that.resolvers[__index] = FIPA.AgentIDHelper.read(in); } } { int __length = in.read_long(); that.userDefinedProperties = new FIPA.Property[__length]; for (int __index = 0; __index < that.userDefinedProperties.length; __index += 1) { that.userDefinedProperties[__index] = FIPA.PropertyHelper.read(in); } } return that; } public static FIPA.AgentID extract(org.omg.CORBA.Any a) { org.omg.CORBA.portable.InputStream in = a.create_input_stream(); return read(in); } public static void insert(org.omg.CORBA.Any a, FIPA.AgentID that) { org.omg.CORBA.portable.OutputStream out = a.create_output_stream(); write(out, that); a.read_value(out.create_input_stream(), type()); } private static org.omg.CORBA.TypeCode _tc; synchronized public static org.omg.CORBA.TypeCode type() { int _memberCount = 4; org.omg.CORBA.StructMember[] _members = null; if (_tc == null) { _members = new org.omg.CORBA.StructMember[4]; _members[0] = new org.omg.CORBA.StructMember( "name", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_string), null); _members[1] = new org.omg.CORBA.StructMember( "addresses", org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_string)), null); _members[2] = new org.omg.CORBA.StructMember( "resolvers", //org.omg.CORBA.ORB.init().create_sequence_tc(0, FIPA.AgentIDHelper.type()), org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CORBA.ORB.init().create_recursive_tc(id())), null); _members[3] = new org.omg.CORBA.StructMember( "userDefinedProperties", org.omg.CORBA.ORB.init().create_sequence_tc(0, FIPA.PropertyHelper.type()), null); _tc = org.omg.CORBA.ORB.init().create_struct_tc(id(), "AgentID", _members); } return _tc; } public static String id() { return "IDL:FIPA/AgentID:1.0"; } }
6553ca9302e06629029dc8a2c3ff6eac101ff36f
637e7482dfec5784732842dd5d38a24dccba0959
/myc-gold-api/src/main/java/com/gomemyc/gold/dto/GoldCommonDTO.java
7bc2a979da7da43c49424fdc3ac0288743a5e4fa
[]
no_license
wang-shun/guomei-huangjin
cc014d1ec10d4d4a5f2567278c9b5d737c11083f
2893e33c2bbc272aed0776c63c4c10cac6a9237f
refs/heads/master
2020-03-29T13:46:29.542627
2018-05-29T08:17:04
2018-05-29T08:17:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,190
java
/** * Project Name:myc-gold-api * File Name:GoldCommonDTO.java * Package Name:com.gomemyc.gold.dto * Date:2017年3月12日上午11:29:54 * Copyright (c) 2017, [email protected] All Rights Reserved. * */ package com.gomemyc.gold.dto; import java.io.Serializable; import java.math.BigDecimal; import org.apache.commons.lang3.builder.ToStringBuilder; /** * ClassName:GoldCommonDTO <br/> * Function: TODO ADD FUNCTION. <br/> * Reason: TODO ADD REASON. <br/> * Date: 2017年3月12日 上午11:29:54 <br/> * @author TianBin * @version * @since JDK 1.8 * @see * @description */ public class GoldCommonDTO implements Serializable{ /** * serialVersionUID:TODO(用一句话描述这个变量表示什么). * @since JDK 1.8 */ private static final long serialVersionUID = 5429365440740014461L; //成交金价 private BigDecimal realPrice; public GoldCommonDTO() { } public BigDecimal getRealPrice() { return realPrice; } public void setRealPrice(BigDecimal realPrice) { this.realPrice = realPrice; } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } }
f91d9ec8404ec60f178d4b3f61efa89eaffbdafe
38c4451ab626dcdc101a11b18e248d33fd8a52e0
/identifiers/batik-1.7/sources/org/apache/batik/parser/LengthListParser.java
e4efaab03b6d55dde2e04f0a0e34a82ba55e7b97
[]
no_license
habeascorpus/habeascorpus-data
47da7c08d0f357938c502bae030d5fb8f44f5e01
536d55729f3110aee058ad009bcba3e063b39450
refs/heads/master
2020-06-04T10:17:20.102451
2013-02-19T15:19:21
2013-02-19T15:19:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,698
java
org PACKAGE_IDENTIFIER false apache PACKAGE_IDENTIFIER false batik PACKAGE_IDENTIFIER false parser PACKAGE_IDENTIFIER false java PACKAGE_IDENTIFIER false io PACKAGE_IDENTIFIER false IOException TYPE_IDENTIFIER false LengthListParser TYPE_IDENTIFIER true LengthParser TYPE_IDENTIFIER false LengthListParser METHOD_IDENTIFIER false lengthHandler VARIABLE_IDENTIFIER false DefaultLengthListHandler TYPE_IDENTIFIER false INSTANCE VARIABLE_IDENTIFIER false setLengthListHandler METHOD_IDENTIFIER true LengthListHandler TYPE_IDENTIFIER false handler VARIABLE_IDENTIFIER true lengthHandler VARIABLE_IDENTIFIER false handler VARIABLE_IDENTIFIER false LengthListHandler TYPE_IDENTIFIER false getLengthListHandler METHOD_IDENTIFIER true LengthListHandler TYPE_IDENTIFIER false lengthHandler VARIABLE_IDENTIFIER false doParse METHOD_IDENTIFIER true ParseException TYPE_IDENTIFIER false IOException TYPE_IDENTIFIER false LengthListHandler TYPE_IDENTIFIER false lengthHandler VARIABLE_IDENTIFIER false startLengthList METHOD_IDENTIFIER false current VARIABLE_IDENTIFIER false reader VARIABLE_IDENTIFIER false read METHOD_IDENTIFIER false skipSpaces METHOD_IDENTIFIER false lengthHandler VARIABLE_IDENTIFIER false startLength METHOD_IDENTIFIER false parseLength METHOD_IDENTIFIER false lengthHandler VARIABLE_IDENTIFIER false endLength METHOD_IDENTIFIER false skipCommaSpaces METHOD_IDENTIFIER false current VARIABLE_IDENTIFIER false NumberFormatException TYPE_IDENTIFIER false e VARIABLE_IDENTIFIER true reportUnexpectedCharacterError METHOD_IDENTIFIER false current VARIABLE_IDENTIFIER false LengthListHandler TYPE_IDENTIFIER false lengthHandler VARIABLE_IDENTIFIER false endLengthList METHOD_IDENTIFIER false
87d3f952379ac3aa757ed90a325dea7d4bfa5a18
2150f77199a06ed87e7c4f100933a519a46c6dbc
/app/src/main/java/com/salma/counterfragmentapp/MainActivity.java
c6156442bf88c86d7d2b1d719ba4812dde119c88
[]
no_license
Eng-SalmaSalah/CounterFragment-AndroidApp
b1695f45359dfbcd794ad01a85ed5ab2ef7c887f
35e23cdefd3b3dd25b4d7ac289bf8f955df3e04e
refs/heads/master
2020-05-01T02:55:23.126416
2019-03-23T02:02:14
2019-03-23T02:02:14
177,232,564
0
0
null
null
null
null
UTF-8
Java
false
false
1,313
java
package com.salma.counterfragmentapp; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity implements CounterInterface { int counter=0; CounterValueFragment counterValueFragment; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); CounterFragment counterFragment=new CounterFragment(); FragmentManager fragmentManager=getSupportFragmentManager(); FragmentTransaction fragmentTransaction=fragmentManager.beginTransaction(); fragmentTransaction.add(R.id.upperLayout,counterFragment,"counterFragment"); fragmentTransaction.commit(); } @Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putInt("counter",counter); } @Override public void manageCounter(int counter) { counterValueFragment= (CounterValueFragment) getSupportFragmentManager().findFragmentById(R.id.lowerFragment); counterValueFragment.increaseCounter(counter); this.counter=counter; } }
078852006555a18680c5428ebadab39eda2a6481
98eb4c019b51fc08a22538fc92841a6f2a039017
/app/src/test/java/movingforward/tutorapp3/ExampleUnitTest.java
95db802e8cdbf784194ee36648f12a9006049663
[]
no_license
charltonraven/TutorApp3
869cdf4a9cd2e2ee2fafb103eb673136280967ca
06fdd7c3607969ad7f24f6f7c2fccfdb0c25ca43
refs/heads/master
2021-01-11T10:14:09.159364
2017-04-03T00:51:44
2017-04-03T00:51:44
72,601,304
0
0
null
2017-02-04T19:39:30
2016-11-02T03:38:48
Java
UTF-8
Java
false
false
401
java
package movingforward.tutorapp3; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
c1e5008efb633771f78d4cfc1e1f2fb108bcd5ec
613eb45e07937b18d5f223ed7fdd6f9d89d21ded
/NoSQL Basics- Morning/spring-boot-couchbase-example/src/main/java/com/example/au/couchbasedemo/SwaggerConfig.java
a41b10c0fedd9659727cfc6f9e4eedf90f413194
[]
no_license
Sahil-Prajapati/SAU-2021-Jan-Batch-Delhi
ba0f6a257d388e56454cf6ed2db0d86195e6ceea
ecd73324c4fa1a47e2f6419f3ca14776cf768f39
refs/heads/main
2023-02-22T18:42:41.712800
2021-01-31T15:02:49
2021-01-31T15:02:49
328,620,753
0
0
null
2021-01-11T10:02:33
2021-01-11T10:02:33
null
UTF-8
Java
false
false
1,909
java
package com.example.au.couchbasedemo; import java.util.HashSet; import java.util.Set; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.service.ApiInfo; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.swagger2.annotations.EnableSwagger2; @Configuration @EnableSwagger2 public class SwaggerConfig { @Bean public Docket productApi() { Set<String> responseProduceType = new HashSet<String>(); responseProduceType.add("application/json"); responseProduceType.add("application/xml"); return new Docket(DocumentationType.SWAGGER_2) .select().apis(RequestHandlerSelectors.withClassAnnotation(RestController.class)) .paths(PathSelectors.any()).build() .useDefaultResponseMessages(false) .genericModelSubstitutes(ResponseEntity.class) .produces(responseProduceType) .consumes(responseProduceType) .apiInfo(apiInfo()); } private ApiInfo apiInfo() { @SuppressWarnings("deprecation") ApiInfo apiInfo = new ApiInfo( "Item REST API", "All Item related information", "API", "Terms of services", "[email protected]", "License of API", "API License URL"); return apiInfo; } private Object apiKey() { return null; } }
[ "sahilprajapati286.com" ]
sahilprajapati286.com
2cef875d6f80d18fc06d28fd10b4a21cfa167450
ae341cb74d9d101a2dcdaddc61eca51d2e8fe998
/src/com/learn/patterns/creational/method/factory/Dialog.java
62110ceb368d3f0f7ef16c3078ae97b9f5b947a8
[]
no_license
AlexKoltsov/patterns-learn
9356c09f8983f9ecef7a4397890fae674451effc
99f8f296058bba431a6120994140d76669e659bb
refs/heads/master
2020-05-23T07:19:06.262932
2019-06-06T12:11:35
2019-06-06T12:11:35
186,676,028
0
0
null
null
null
null
UTF-8
Java
false
false
295
java
package com.learn.patterns.creational.method.factory; import com.learn.patterns.creational.method.button.Button; public abstract class Dialog { public void renderWindow() { Button button = creteButton(); button.render(); } public abstract Button creteButton(); }
da6b4d6642315481093133bb909dd18db982c987
da98e72fc8da3327b510a3f4e3e088135245b4b1
/src/java/com/model/Order.java
8e8243da1b61041859d40a7ff3393ee96d818ea0
[]
no_license
KavinduWimalasiri/Wedding-Site-J2ee
726e5893f98d19718becf912510a9a8dc9bc6613
05c98ea8ad87911f85cb71b8c2d77ede59a7f629
refs/heads/master
2023-01-19T03:13:45.092950
2020-11-23T03:56:21
2020-11-23T03:56:21
297,454,442
0
0
null
null
null
null
UTF-8
Java
false
false
1,537
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.model; /** * * @author Lakith */ public class Order { String cname; String spname; String contactno; String address; String otherdetails; public Order() { } public Order(String cname, String spname,String contactno, String address, String otherdetails) { this.cname = cname; this.spname = spname; this.contactno = contactno; this.address = address; this.otherdetails = otherdetails; } public String getCname() { return cname; } public void setCname(String cname) { this.cname = cname; } public String getSpname() { return spname; } public void setSpname(String spname) { this.spname = spname; } public String getContactno() { return contactno; } public void setContactno(String contactno) { this.contactno = contactno; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getOtherdetails() { return otherdetails; } public void setOtherdetails(String otherdetails) { this.otherdetails = otherdetails; } }
3077d9df4b50422f420c7f29bc3463caa91fa9cc
c18fad82297211f7b60092f0fe87a0fbfc018671
/sage/andriod_app/MyFirstApp/src/com/sage/listeners/RecipeDetailsClickListener.java
8d0d83480a782805c9177e879ae7b8d2aeeec691
[]
no_license
tamarstern/sage_android_new
a9aabb2c3fb9720275a5f7cb0e2958238c6ae3b8
beab9ec7deea8cf5187fde3e2c4273ab14875ff7
refs/heads/master
2021-03-24T10:03:44.190011
2016-09-23T22:34:22
2016-09-23T22:34:22
55,343,440
0
0
null
null
null
null
UTF-8
Java
false
false
598
java
package com.sage.listeners; import android.app.Activity; import android.view.View; import android.view.View.OnClickListener; import com.sage.entities.RecipeDetails; import com.sage.utils.ActivityUtils; public class RecipeDetailsClickListener implements OnClickListener { /** * */ private final Activity context; private RecipeDetails recipeId; public RecipeDetailsClickListener(Activity context, RecipeDetails recipeId) { this.context = context; this.recipeId = recipeId; } @Override public void onClick(View v) { ActivityUtils.openRecipeActivity(recipeId, context); } }
7579974ebaca9ffe3f275e79b732c3d4c73f8ae8
f6bde134227529f9d45712a42f21c44b88843048
/gilead-gwt/src/main/resources/net/sf/gilead/emul/java5/ejb3/org/hibernate/annotations/Filter.java
13320ba8482e7fb27ac32d943dcf01f738a10de1
[]
no_license
emsouza/gilead
e6a6239c882c43b63895de8ea7e63ec798b64ae8
f5e4eef90f52d36ebd9dadf490767afbbd49bba6
refs/heads/master
2022-03-15T18:45:29.350955
2020-11-07T17:25:28
2020-11-07T17:25:28
5,875,580
9
9
null
2022-02-09T23:19:18
2012-09-19T17:36:46
Java
UTF-8
Java
false
false
1,478
java
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.annotations; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Add filters to an entity or a target entity of a collection. * * @author Emmanuel Bernard * @author Matthew Inger * @author Magnus Sandberg * @author Rob Worsnop */ @Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) public @interface Filter { /** * The filter name. */ String name(); /** * The filter condition. If empty, the default condition from the correspondingly named {@link FilterDef} is used. */ String condition() default ""; /** * If true, automatically determine all points within the condition fragment that an alias should be injected. * Otherwise, injection will only replace instances of explicit "{alias}" instances or * @SqlFragmentAlias descriptors. */ boolean deduceAliasInjectionPoints() default true; /** * The alias descriptors for injection. */ SqlFragmentAlias[] aliases() default {}; }
b0e122b0835d4fcea0c1dd045048fe7c79c7294b
8a5bd586c9bc3918e48aabae6e0f51be828936eb
/src/main/java/com/example/test/model/Section.java
9d9832bdec617e5a04a337cdfd785516caa5916a
[]
no_license
seanzhu0925/ModernHealthRestAPI
505177b32768a4e0db2eace38850b3504fa25fec
151acdb89590b57255b5394f232e0f1781633136
refs/heads/master
2023-07-17T03:28:38.901914
2021-08-20T15:32:06
2021-08-20T15:32:06
393,497,706
0
0
null
null
null
null
UTF-8
Java
false
false
1,198
java
package com.example.test.model; import com.sun.istack.NotNull; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import javax.persistence.*; import javax.validation.constraints.Size; import java.io.Serializable; import java.util.Set; @Entity @Setter @Getter @NoArgsConstructor public class Section implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long section_id; @ManyToOne @JoinColumn(name = "program_id", nullable = false) private Program program; @OneToMany(mappedBy = "section", cascade = CascadeType.ALL, orphanRemoval = true) private Set<Activity> activitySet; @NotNull @Size(max = 128) private String name; @NotNull @Size(max = 128) private String description; @Lob @NotNull private byte[] imageContent; @NotNull private int order_index; public Section(String description, byte[] imageContent, String name, int order_index, Program program) { this.program = program; this.name = name; this.description = description; this.imageContent = imageContent; this.order_index = order_index; } }
98826c53fad6552c671cc2d4e6f17dcb77634da3
6abec1e1e832d263293054e8fc55903a62c59459
/src/main/java/controller/GooutCheckController.java
0e0b015fb2f0e2cec44229897ae4a2b7e7087657
[]
no_license
linyix/attendance
1f2e5fcf14a62c90f9fdfc924745b221b6a87ed6
7467bd56e6b6f8cba243a2189efa629b7b17fa67
refs/heads/master
2020-04-26T17:58:54.294305
2019-05-11T10:30:16
2019-05-11T10:30:16
173,730,681
0
0
null
null
null
null
UTF-8
Java
false
false
1,262
java
package controller; import com.alibaba.fastjson.JSONObject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import pojo.Employee; import pojo.GooutCheck; import service.EmployeeService; import service.GooutCheckService; import service.GooutService; @Controller public class GooutCheckController { @Autowired GooutCheckService GooutCheckService; @Autowired GooutService GooutService; @Autowired EmployeeService employeeService; @RequestMapping("Goout/{lid}/Gooutcheck/json") @ResponseBody public String getGooutCheckJson(@PathVariable("lid") int lid) { GooutCheck GooutCheck = GooutCheckService.getByGooutId(lid); if(GooutCheck==null) return "notexist"; Employee employee = employeeService.get(GooutCheck.getEmployeeId()); JSONObject json = new JSONObject(); json.put("Gooutcheck", JSONObject.toJSON(GooutCheck)); json.put("employee", JSONObject.toJSON(employee)); return json.toJSONString(); } }
7bef0f5d81ffec7b210078ac58a1fd5f51f8b144
b97d9a17b65dd30bf9a47956747a6e8176782af1
/chapter01/src/main/java/com/felit/drools/chapter01/model/Source.java
c94e9c27651081ad55a7c61c17a6b830e16f0fe3
[]
no_license
felit/drools-study
55ee0cc23c2ae842f83832a99e4deef0dc0faa79
0b69acd9596bbc5615e27c3ae22344a154183f64
refs/heads/master
2016-09-06T16:44:44.999361
2014-12-30T08:17:43
2014-12-30T08:17:43
27,324,813
1
0
null
null
null
null
UTF-8
Java
false
false
388
java
package com.felit.drools.chapter01.model; /** * 需求来源 */ public class Source { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public String toString() { return "Source{" + "name='" + name + '\'' + '}'; } }
4a9a07bd29c9f025d9f3762fa0168a428438bb5f
85a44678822240ac418c65af376ad0a6089ba3da
/app/src/main/java/com/hundsun/codecompete/data/ConstantValue/ConstantValue.java
6bf98261101b7e730cfe3df05754d09951d23415
[]
no_license
friends110110/Ethereum-App
497725564ec1e7a7dc06188f4a308f79480c1597
3fbbcee291243da305a962568b6479fa06114110
refs/heads/master
2021-01-22T22:34:11.830281
2017-03-20T08:19:25
2017-03-20T08:19:25
85,550,697
5
5
null
null
null
null
UTF-8
Java
false
false
2,983
java
package com.hundsun.codecompete.data.ConstantValue; /** * Created by Administrator on 2016/7/29. */ public class ConstantValue { //请求码 /** * 扫描跳转Activity RequestCode */ public static final int REQUEST_CODE = 111; /** * 选择系统图片Request Code */ public static final int REQUEST_IMAGE = 112; //二维码生成标识字段 public static String QR_GENERATE_CODE_FLAG ="generate_code"; //n=21146加密方式 //public static String MY_V3_STR="{\"address\":\"2498e8af9e4b524ee9e73e4a6feb82879b56a507\",\"crypto\":{\"cipher\":\"aes-128-ctr\",\"ciphertext\":\"0f8611a94b8e526b0c53b1012f9fb76898c9513dec4655e400c61f322e3a6427\",\"cipherparams\":{\"iv\":\"5e5a2ef45f41811d3f7477f831a1b238\"},\"kdf\":\"scrypt\",\"kdfparams\":{\"dklen\":32,\"n\":262144,\"p\":1,\"r\":8,\"salt\":\"966b292ce9c8913d6e125c788b0c43e57421762ccb0f36e8f9f5982aa668eeba\"},\"mac\":\"0bcd5a09cce9c29cca138998510e6dd8a7153aeecf41f85a8fe9a77b0c46277b\"},\"id\":\"b1f3180a-72ff-477d-aa7d-3b14caac2a3e\",\"version\":3}"; //n=1024加密方式 // public static String MY_V3_STR="{\"address\":\"2498e8af9e4b524ee9e73e4a6feb82879b56a507\",\"crypto\":{\"cipher\":\"aes-128-ctr\",\"ciphertext\":\"5eed594c5db3d8300033d7cf490b5a65faf2fb0d55dbcaa2a5a0bf8ddb4c2d5d\",\"cipherparams\":{\"iv\":\"bf5dde65c5f88b778421bb4676a9e27d\"},\"kdf\":\"scrypt\",\"kdfparams\":{\"dklen\":32,\"n\":1024,\"r\":8,\"p\":1,\"salt\":\"90e4dfaa5bc099bdb6b504d34ed70681280f7bd6b65cb0e466fddfa5403ce20f2412dca09db7dc72447d056bfc43517f3ef304eea3b5db0b7a48401e859b37c4\"},\"mac\":\"82a18260b43a7e7bc4b67825bbdd8d101faf5afd2e101c1ce08eb147846dc578\"},\"id\":\"5829c9c8-643e-4c38-ad19-13e64bca7012\",\"version\":3}\n"; //n=2048 public static String MY_V3_STR="{\"address\":\"2498e8af9e4b524ee9e73e4a6feb82879b56a507\",\"crypto\":{\"cipher\":\"aes-128-ctr\",\"ciphertext\":\"ccb4ec519e98f7150a246016b7cc6967e0986c73832999e18713661017e51cac\",\"cipherparams\":{\"iv\":\"03dc9cf3710b3d5221feb8b4e9e02810\"},\"kdf\":\"scrypt\",\"kdfparams\":{\"dklen\":32,\"n\":2048,\"r\":8,\"p\":1,\"salt\":\"727e741291590c80b5f93035d6911f868774f090ced6323ccd6c9736a2bc9b9ebdc35606259643f96903a1f83678b58477e0f19ae8850df53a31f24c3ececb0e\"},\"mac\":\"d60011f985bf8c9de3e97fa64ad6af5dae2dec6c710ef26529a573e57751e10f\"},\"id\":\"46ab06ba-8930-47c3-9663-6ceaf749cd59\",\"version\":3}"; public static String MY_PASSWORD="wang123123"; public static String MY_PRIVATE_KEY="1fe1f9aabee3135ecd11dfa99a56cd73f9b6b0a39e3bd61eb2e1dad000c9335b"; public static String MY_PUBLIC_KEY="049656743af8a52d91b42058502b2909eca4ad2deaa057b4a0df7ea2757eb9fdbebb7f2d9aebecaa0ca5c53f24cd5a333423d0590817823b4aca0120ac53071459"; public static String MY_ADDRESS="2498e8af9e4b524ee9e73e4a6feb82879b56a507"; public static String TO_ADDRESS="7f4B46632E36356B622BF21957802c03abe0A5a8"; /** * VALUE FOR DEFAULT */ public static String VALUE_PERSON_INFO="个人信息"; }
[ "friends110110" ]
friends110110
a721a1a31d72c279a1f95aaa65461ada80dc4eb0
b8f6e799a7ef6f4f849460e243e58c237be1593e
/build/tflite_flutter/generated/source/buildConfig/debug/com/tfliteflutter/tflite_flutter_plugin/BuildConfig.java
0af22d6cc22ed832cabc467ac8813d9957867de7
[]
permissive
KalyanMohanty/FaceRecognitionAuth-
9fac45ce400a89d2fe615bfacf9014aab2f9314a
cc0e651fd3852564f851d4869d796223b5a70b22
refs/heads/main
2023-01-30T07:53:50.713365
2020-12-14T07:09:11
2020-12-14T07:09:11
310,366,342
0
0
BSD-3-Clause
2020-11-07T08:34:38
2020-11-05T17:06:20
Java
UTF-8
Java
false
false
718
java
/** * Automatically generated file. DO NOT MODIFY */ package com.tfliteflutter.tflite_flutter_plugin; public final class BuildConfig { public static final boolean DEBUG = Boolean.parseBoolean("true"); public static final String LIBRARY_PACKAGE_NAME = "com.tfliteflutter.tflite_flutter_plugin"; /** * @deprecated APPLICATION_ID is misleading in libraries. For the library package name use LIBRARY_PACKAGE_NAME */ @Deprecated public static final String APPLICATION_ID = "com.tfliteflutter.tflite_flutter_plugin"; public static final String BUILD_TYPE = "debug"; public static final String FLAVOR = ""; public static final int VERSION_CODE = -1; public static final String VERSION_NAME = ""; }
a6a4781b72b12c8c544ba19525418d5a86ca79e8
f12b79edb3b6d9d598677115d694b95bc6e287f6
/src/sklse/yongfeng/sort/MainEntry.java
b3489b216add243728262071101de4257a6f4326
[ "Apache-2.0" ]
permissive
Gu-Youngfeng/Sort4J
6ba6f7c2d963497662de5fb01f36f51de74cd7f0
c5989b415eae871c84e1134b98a59b8b73ea05eb
refs/heads/master
2021-07-06T16:01:02.310434
2017-09-29T06:24:48
2017-09-29T06:24:48
105,107,113
1
0
null
null
null
null
UTF-8
Java
false
false
308
java
package sklse.yongfeng.sort; /*** * <p>This class <b>MainEntry</b> provide the entry of the project.</p> * @author yongfeng * @date Sep.28th, 2017 * */ public class MainEntry { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("Hello, Java!"); } }
99b0024c6649ba9f999f6162bc90899b5e194c59
165b9bf7032b4ac42e3b12675f5d396880fb0d65
/android/app/src/main/java/com/reactnativemarkedtext/MainActivity.java
9ede74b0168e2d09fc8652837a3f4908d72e3462
[ "MIT" ]
permissive
magicien/react-native-marked-text
bcebea1440bd894d6cff4f76831a057193eb6268
3729a47f691db0cf9f14f68044ed95f0f555f7a7
refs/heads/master
2021-09-10T05:47:20.048977
2018-03-21T08:21:16
2018-03-21T08:21:16
126,127,601
1
0
null
null
null
null
UTF-8
Java
false
false
387
java
package com.reactnativemarkedtext; import com.facebook.react.ReactActivity; public class MainActivity extends ReactActivity { /** * Returns the name of the main component registered from JavaScript. * This is used to schedule rendering of the component. */ @Override protected String getMainComponentName() { return "ReactNativeMarkedText"; } }
3ff0844982a843c7f51e0cd93be92a168bf696bd
a744882fb7cf18944bd6719408e5a9f2f0d6c0dd
/sourcecode7/src/java/security/spec/X509EncodedKeySpec.java
7c242ea12c791e8f5045c2b4508532993277e264
[ "Apache-2.0" ]
permissive
hanekawasann/learn
a39b8d17fd50fa8438baaa5b41fdbe8bd299ab33
eef678f1b8e14b7aab966e79a8b5a777cfc7ab14
refs/heads/master
2022-09-13T02:18:07.127489
2020-04-26T07:58:35
2020-04-26T07:58:35
176,686,231
0
0
Apache-2.0
2022-09-01T23:21:38
2019-03-20T08:16:05
Java
UTF-8
Java
false
false
2,860
java
/* * Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package java.security.spec; /** * This class represents the ASN.1 encoding of a public key, * encoded according to the ASN.1 type <code>SubjectPublicKeyInfo</code>. * The <code>SubjectPublicKeyInfo</code> syntax is defined in the X.509 * standard as follows: * * <pre> * SubjectPublicKeyInfo ::= SEQUENCE { * algorithm AlgorithmIdentifier, * subjectPublicKey BIT STRING } * </pre> * * @author Jan Luehe * @see java.security.Key * @see java.security.KeyFactory * @see KeySpec * @see EncodedKeySpec * @see PKCS8EncodedKeySpec * @since 1.2 */ public class X509EncodedKeySpec extends EncodedKeySpec { /** * Creates a new X509EncodedKeySpec with the given encoded key. * * @param encodedKey the key, which is assumed to be * encoded according to the X.509 standard. The contents of the * array are copied to protect against subsequent modification. * @throws NullPointerException if <code>encodedKey</code> * is null. */ public X509EncodedKeySpec(byte[] encodedKey) { super(encodedKey); } /** * Returns the key bytes, encoded according to the X.509 standard. * * @return the X.509 encoding of the key. Returns a new array * each time this method is called. */ public byte[] getEncoded() { return super.getEncoded(); } /** * Returns the name of the encoding format associated with this * key specification. * * @return the string <code>"X.509"</code>. */ public final String getFormat() { return "X.509"; } }
4638e59081a2a550e79b608dee2e586020a64769
9b17bf1ffac03c9048e22e7e92c5a062a0491031
/basics/src/Giraffe.java
4617fa9e9385007e675b8004e707107af9d27cb6
[]
no_license
piyushtiw/Design-Patterns-in-Java
42cc7f2fb6c5bfe789ac642d2daf1122598edd75
3eee64739539e50684e72cd0cbfae385219e36c7
refs/heads/master
2022-11-25T00:50:40.605229
2020-07-22T01:53:17
2020-07-22T01:53:17
203,494,253
0
0
null
null
null
null
UTF-8
Java
false
false
1,050
java
public class Giraffe extends Creature{ private String name; @Override public void setName(String newName) { name = newName; } @Override public String getName() { // TODO Auto-generated method stub return name; } @Override public void setHeight(double newheight) { } @Override public double getHeight() { return 0; } @Override public void setWeight(double newWeight) { // TODO Auto-generated method stub } @Override public double getWeight() { // TODO Auto-generated method stub return 0; } @Override public void setFavFood(String newFood) { } @Override public String getFavFood() { return null; } @Override public void setSpeed(double newSpeed) { } @Override public double getSpeed() { return 0; } @Override public void setSound(String newSound) { } @Override public String getSound() { return null; } }
78ba28351b62531040a518091fa451367d089694
dc91ee6d7ab3f7d981609f12fb3d7c43017348fa
/runtimepermission/src/androidTest/java/com/masavi/runtimepermission/ExampleInstrumentedTest.java
3dc5b67e7a76f1ed63a54f2d2661aab52a394940
[]
no_license
Masavi/Devf-Batch-14-Android
642d13451a16a87ccd027c1a2151619903540798
429cc6a3931239793598406617e0067cccc8f8fa
refs/heads/master
2021-01-19T22:17:37.496726
2017-05-12T03:16:11
2017-05-12T03:16:11
88,790,747
0
0
null
null
null
null
UTF-8
Java
false
false
760
java
package com.masavi.runtimepermission; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.masavi.runtimepermission", appContext.getPackageName()); } }
f7ba17f509e3d6e4cdbf98d9cef233a7b27fccb9
872601067d4ebaeeea4b90b966ec87583a2f8b4a
/Spring Core, Maven/Hands-on/885149/PatientManagement/PatientManagement/src/main/java/com/cts/patient/model/Patient.java
136b0ef92a7d4614d5b087cebba8931e1daedb85
[]
no_license
VIJAYAJUPUDI/Stage1
ef36fb96157c2200457c4bddfc01f1d6b169ed5e
84087731d3ea7a5a966f80f5d8fab3e73bebce88
refs/heads/main
2023-03-04T19:25:14.105218
2021-02-12T08:52:05
2021-02-12T08:52:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,127
java
package com.cts.patient.model; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; public class Patient { @Value("${pid}") private String pid; @Value("${pname}") private String pname; @Value("${disease}") private String disease; @Value("${sex}") private String sex; @Value("${admit_status}") private String admit_status; @Value("${age}") private Integer age; public String getPid() { return pid; } public void setPid(String pid) { this.pid = pid; } public String getPname() { return pname; } public void setPname(String pname) { this.pname = pname; } public String getDisease() { return disease; } public void setDisease(String disease) { this.disease = disease; } public String getSex() { return sex; } public void setSex(String sex) { this.sex = sex; } public String getAdmit_status() { return admit_status; } public void setAdmit_status(String admit_status) { this.admit_status = admit_status; } public Integer getAge() { return age; } public void setAge(Integer age) { this.age = age; } }
5cd9c79e4564d094681ad65d5ebad1ce9f8a8221
50597bff5504a44a7ab7dd441a5fcfe8cbc4a23d
/ens-20171110/src/main/java/com/aliyun/ens20171110/Client.java
0f762ba629a7a5ad71d939c932e03e24dc16b5f7
[ "Apache-2.0" ]
permissive
shayv-123/alibabacloud-java-sdk
63fe9c0f6afe094d9dcfc19bf317e7ef8d5303e1
df7a6f7092f75ea3ba62de2c990dfcd986c3f66f
refs/heads/master
2023-05-05T02:22:41.236951
2021-05-11T09:55:17
2021-05-11T09:55:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
78,340
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.ens20171110; import com.aliyun.tea.*; import com.aliyun.ens20171110.models.*; import com.aliyun.teautil.*; import com.aliyun.teautil.models.*; import com.aliyun.teaopenapi.*; import com.aliyun.teaopenapi.models.*; import com.aliyun.openapiutil.*; import com.aliyun.endpointutil.*; public class Client extends com.aliyun.teaopenapi.Client { public Client(Config config) throws Exception { super(config); this._endpointRule = ""; this.checkConfig(config); this._endpoint = this.getEndpoint("ens", _regionId, _endpointRule, _network, _suffix, _endpointMap, _endpoint); } public String getEndpoint(String productId, String regionId, String endpointRule, String network, String suffix, java.util.Map<String, String> endpointMap, String endpoint) throws Exception { if (!com.aliyun.teautil.Common.empty(endpoint)) { return endpoint; } if (!com.aliyun.teautil.Common.isUnset(endpointMap) && !com.aliyun.teautil.Common.empty(endpointMap.get(regionId))) { return endpointMap.get(regionId); } return com.aliyun.endpointutil.Client.getEndpointRules(productId, regionId, endpointRule, network, suffix); } public AddNetworkInterfaceToInstanceResponse addNetworkInterfaceToInstanceWithOptions(AddNetworkInterfaceToInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("AddNetworkInterfaceToInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new AddNetworkInterfaceToInstanceResponse()); } public AddNetworkInterfaceToInstanceResponse addNetworkInterfaceToInstance(AddNetworkInterfaceToInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.addNetworkInterfaceToInstanceWithOptions(request, runtime); } public AllocateEipAddressResponse allocateEipAddressWithOptions(AllocateEipAddressRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("AllocateEipAddress", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new AllocateEipAddressResponse()); } public AllocateEipAddressResponse allocateEipAddress(AllocateEipAddressRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.allocateEipAddressWithOptions(request, runtime); } public AssociateEipAddressResponse associateEipAddressWithOptions(AssociateEipAddressRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("AssociateEipAddress", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new AssociateEipAddressResponse()); } public AssociateEipAddressResponse associateEipAddress(AssociateEipAddressRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.associateEipAddressWithOptions(request, runtime); } public AttachEnsInstancesResponse attachEnsInstancesWithOptions(AttachEnsInstancesRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("AttachEnsInstances", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new AttachEnsInstancesResponse()); } public AttachEnsInstancesResponse attachEnsInstances(AttachEnsInstancesRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.attachEnsInstancesWithOptions(request, runtime); } public AuthorizeSecurityGroupResponse authorizeSecurityGroupWithOptions(AuthorizeSecurityGroupRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("AuthorizeSecurityGroup", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new AuthorizeSecurityGroupResponse()); } public AuthorizeSecurityGroupResponse authorizeSecurityGroup(AuthorizeSecurityGroupRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.authorizeSecurityGroupWithOptions(request, runtime); } public AuthorizeSecurityGroupEgressResponse authorizeSecurityGroupEgressWithOptions(AuthorizeSecurityGroupEgressRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("AuthorizeSecurityGroupEgress", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new AuthorizeSecurityGroupEgressResponse()); } public AuthorizeSecurityGroupEgressResponse authorizeSecurityGroupEgress(AuthorizeSecurityGroupEgressRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.authorizeSecurityGroupEgressWithOptions(request, runtime); } public CheckQuotaResponse checkQuotaWithOptions(CheckQuotaRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("CheckQuota", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new CheckQuotaResponse()); } public CheckQuotaResponse checkQuota(CheckQuotaRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.checkQuotaWithOptions(request, runtime); } public CreateApplicationResponse createApplicationWithOptions(CreateApplicationRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("CreateApplication", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new CreateApplicationResponse()); } public CreateApplicationResponse createApplication(CreateApplicationRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.createApplicationWithOptions(request, runtime); } public CreateEnsServiceResponse createEnsServiceWithOptions(CreateEnsServiceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("CreateEnsService", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new CreateEnsServiceResponse()); } public CreateEnsServiceResponse createEnsService(CreateEnsServiceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.createEnsServiceWithOptions(request, runtime); } public CreateEPInstanceResponse createEPInstanceWithOptions(CreateEPInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("CreateEPInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new CreateEPInstanceResponse()); } public CreateEPInstanceResponse createEPInstance(CreateEPInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.createEPInstanceWithOptions(request, runtime); } public CreateEpnInstanceResponse createEpnInstanceWithOptions(CreateEpnInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("CreateEpnInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new CreateEpnInstanceResponse()); } public CreateEpnInstanceResponse createEpnInstance(CreateEpnInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.createEpnInstanceWithOptions(request, runtime); } public CreateImageResponse createImageWithOptions(CreateImageRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("CreateImage", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new CreateImageResponse()); } public CreateImageResponse createImage(CreateImageRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.createImageWithOptions(request, runtime); } public CreateKeyPairResponse createKeyPairWithOptions(CreateKeyPairRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("CreateKeyPair", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new CreateKeyPairResponse()); } public CreateKeyPairResponse createKeyPair(CreateKeyPairRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.createKeyPairWithOptions(request, runtime); } public CreateSecurityGroupResponse createSecurityGroupWithOptions(CreateSecurityGroupRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("CreateSecurityGroup", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new CreateSecurityGroupResponse()); } public CreateSecurityGroupResponse createSecurityGroup(CreateSecurityGroupRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.createSecurityGroupWithOptions(request, runtime); } public CreateVmAndSaveStockResponse createVmAndSaveStockWithOptions(CreateVmAndSaveStockRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("CreateVmAndSaveStock", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new CreateVmAndSaveStockResponse()); } public CreateVmAndSaveStockResponse createVmAndSaveStock(CreateVmAndSaveStockRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.createVmAndSaveStockWithOptions(request, runtime); } public CreateVSwitchResponse createVSwitchWithOptions(CreateVSwitchRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("CreateVSwitch", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new CreateVSwitchResponse()); } public CreateVSwitchResponse createVSwitch(CreateVSwitchRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.createVSwitchWithOptions(request, runtime); } public DeleteApplicationResponse deleteApplicationWithOptions(DeleteApplicationRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DeleteApplication", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DeleteApplicationResponse()); } public DeleteApplicationResponse deleteApplication(DeleteApplicationRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.deleteApplicationWithOptions(request, runtime); } public DeleteEpnInstanceResponse deleteEpnInstanceWithOptions(DeleteEpnInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DeleteEpnInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DeleteEpnInstanceResponse()); } public DeleteEpnInstanceResponse deleteEpnInstance(DeleteEpnInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.deleteEpnInstanceWithOptions(request, runtime); } public DeleteKeyPairsResponse deleteKeyPairsWithOptions(DeleteKeyPairsRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DeleteKeyPairs", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DeleteKeyPairsResponse()); } public DeleteKeyPairsResponse deleteKeyPairs(DeleteKeyPairsRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.deleteKeyPairsWithOptions(request, runtime); } public DeleteSecurityGroupResponse deleteSecurityGroupWithOptions(DeleteSecurityGroupRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DeleteSecurityGroup", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DeleteSecurityGroupResponse()); } public DeleteSecurityGroupResponse deleteSecurityGroup(DeleteSecurityGroupRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.deleteSecurityGroupWithOptions(request, runtime); } public DeleteVmResponse deleteVmWithOptions(DeleteVmRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DeleteVm", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DeleteVmResponse()); } public DeleteVmResponse deleteVm(DeleteVmRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.deleteVmWithOptions(request, runtime); } public DeleteVSwitchResponse deleteVSwitchWithOptions(DeleteVSwitchRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DeleteVSwitch", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DeleteVSwitchResponse()); } public DeleteVSwitchResponse deleteVSwitch(DeleteVSwitchRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.deleteVSwitchWithOptions(request, runtime); } public DescribeApplicationResponse describeApplicationWithOptions(DescribeApplicationRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeApplication", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeApplicationResponse()); } public DescribeApplicationResponse describeApplication(DescribeApplicationRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeApplicationWithOptions(request, runtime); } public DescribeApplicationResourceSummaryResponse describeApplicationResourceSummaryWithOptions(DescribeApplicationResourceSummaryRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeApplicationResourceSummary", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeApplicationResourceSummaryResponse()); } public DescribeApplicationResourceSummaryResponse describeApplicationResourceSummary(DescribeApplicationResourceSummaryRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeApplicationResourceSummaryWithOptions(request, runtime); } public DescribeAvailableResourceResponse describeAvailableResourceWithOptions(DescribeAvailableResourceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeAvailableResource", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeAvailableResourceResponse()); } public DescribeAvailableResourceResponse describeAvailableResource(DescribeAvailableResourceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeAvailableResourceWithOptions(request, runtime); } public DescribeBandwitdhByInternetChargeTypeResponse describeBandwitdhByInternetChargeTypeWithOptions(DescribeBandwitdhByInternetChargeTypeRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeBandwitdhByInternetChargeType", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeBandwitdhByInternetChargeTypeResponse()); } public DescribeBandwitdhByInternetChargeTypeResponse describeBandwitdhByInternetChargeType(DescribeBandwitdhByInternetChargeTypeRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeBandwitdhByInternetChargeTypeWithOptions(request, runtime); } public DescribeBandWithdChargeTypeResponse describeBandWithdChargeTypeWithOptions(DescribeBandWithdChargeTypeRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeBandWithdChargeType", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeBandWithdChargeTypeResponse()); } public DescribeBandWithdChargeTypeResponse describeBandWithdChargeType(DescribeBandWithdChargeTypeRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeBandWithdChargeTypeWithOptions(request, runtime); } public DescribeCreatePrePaidInstanceResultResponse describeCreatePrePaidInstanceResultWithOptions(DescribeCreatePrePaidInstanceResultRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeCreatePrePaidInstanceResult", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeCreatePrePaidInstanceResultResponse()); } public DescribeCreatePrePaidInstanceResultResponse describeCreatePrePaidInstanceResult(DescribeCreatePrePaidInstanceResultRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeCreatePrePaidInstanceResultWithOptions(request, runtime); } public DescribeDataDistResultResponse describeDataDistResultWithOptions(DescribeDataDistResultRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeDataDistResult", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeDataDistResultResponse()); } public DescribeDataDistResultResponse describeDataDistResult(DescribeDataDistResultRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeDataDistResultWithOptions(request, runtime); } public DescribeDataPushResultResponse describeDataPushResultWithOptions(DescribeDataPushResultRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeDataPushResult", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeDataPushResultResponse()); } public DescribeDataPushResultResponse describeDataPushResult(DescribeDataPushResultRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeDataPushResultWithOptions(request, runtime); } public DescribeEipAddressesResponse describeEipAddressesWithOptions(DescribeEipAddressesRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeEipAddresses", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeEipAddressesResponse()); } public DescribeEipAddressesResponse describeEipAddresses(DescribeEipAddressesRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeEipAddressesWithOptions(request, runtime); } public DescribeEnsNetDistrictResponse describeEnsNetDistrictWithOptions(DescribeEnsNetDistrictRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeEnsNetDistrict", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeEnsNetDistrictResponse()); } public DescribeEnsNetDistrictResponse describeEnsNetDistrict(DescribeEnsNetDistrictRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeEnsNetDistrictWithOptions(request, runtime); } public DescribeEnsNetLevelResponse describeEnsNetLevelWithOptions(DescribeEnsNetLevelRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeEnsNetLevel", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeEnsNetLevelResponse()); } public DescribeEnsNetLevelResponse describeEnsNetLevel(DescribeEnsNetLevelRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeEnsNetLevelWithOptions(request, runtime); } public DescribeEnsNetSaleDistrictResponse describeEnsNetSaleDistrictWithOptions(DescribeEnsNetSaleDistrictRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeEnsNetSaleDistrict", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeEnsNetSaleDistrictResponse()); } public DescribeEnsNetSaleDistrictResponse describeEnsNetSaleDistrict(DescribeEnsNetSaleDistrictRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeEnsNetSaleDistrictWithOptions(request, runtime); } public DescribeEnsRegionIdIpv6InfoResponse describeEnsRegionIdIpv6InfoWithOptions(DescribeEnsRegionIdIpv6InfoRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeEnsRegionIdIpv6Info", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeEnsRegionIdIpv6InfoResponse()); } public DescribeEnsRegionIdIpv6InfoResponse describeEnsRegionIdIpv6Info(DescribeEnsRegionIdIpv6InfoRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeEnsRegionIdIpv6InfoWithOptions(request, runtime); } public DescribeEnsRegionIdResourceResponse describeEnsRegionIdResourceWithOptions(DescribeEnsRegionIdResourceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeEnsRegionIdResource", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeEnsRegionIdResourceResponse()); } public DescribeEnsRegionIdResourceResponse describeEnsRegionIdResource(DescribeEnsRegionIdResourceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeEnsRegionIdResourceWithOptions(request, runtime); } public DescribeEnsRegionsResponse describeEnsRegionsWithOptions(DescribeEnsRegionsRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeEnsRegions", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeEnsRegionsResponse()); } public DescribeEnsRegionsResponse describeEnsRegions(DescribeEnsRegionsRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeEnsRegionsWithOptions(request, runtime); } public DescribeEpnBandWidthDataResponse describeEpnBandWidthDataWithOptions(DescribeEpnBandWidthDataRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeEpnBandWidthData", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeEpnBandWidthDataResponse()); } public DescribeEpnBandWidthDataResponse describeEpnBandWidthData(DescribeEpnBandWidthDataRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeEpnBandWidthDataWithOptions(request, runtime); } public DescribeEpnBandwitdhByInternetChargeTypeResponse describeEpnBandwitdhByInternetChargeTypeWithOptions(DescribeEpnBandwitdhByInternetChargeTypeRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeEpnBandwitdhByInternetChargeType", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeEpnBandwitdhByInternetChargeTypeResponse()); } public DescribeEpnBandwitdhByInternetChargeTypeResponse describeEpnBandwitdhByInternetChargeType(DescribeEpnBandwitdhByInternetChargeTypeRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeEpnBandwitdhByInternetChargeTypeWithOptions(request, runtime); } public DescribeEpnInstanceAttributeResponse describeEpnInstanceAttributeWithOptions(DescribeEpnInstanceAttributeRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeEpnInstanceAttribute", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeEpnInstanceAttributeResponse()); } public DescribeEpnInstanceAttributeResponse describeEpnInstanceAttribute(DescribeEpnInstanceAttributeRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeEpnInstanceAttributeWithOptions(request, runtime); } public DescribeEpnInstancesResponse describeEpnInstancesWithOptions(DescribeEpnInstancesRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeEpnInstances", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeEpnInstancesResponse()); } public DescribeEpnInstancesResponse describeEpnInstances(DescribeEpnInstancesRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeEpnInstancesWithOptions(request, runtime); } public DescribeEpnMeasurementDataResponse describeEpnMeasurementDataWithOptions(DescribeEpnMeasurementDataRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeEpnMeasurementData", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeEpnMeasurementDataResponse()); } public DescribeEpnMeasurementDataResponse describeEpnMeasurementData(DescribeEpnMeasurementDataRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeEpnMeasurementDataWithOptions(request, runtime); } public DescribeExportImageInfoResponse describeExportImageInfoWithOptions(DescribeExportImageInfoRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeExportImageInfo", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeExportImageInfoResponse()); } public DescribeExportImageInfoResponse describeExportImageInfo(DescribeExportImageInfoRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeExportImageInfoWithOptions(request, runtime); } public DescribeExportImageStatusResponse describeExportImageStatusWithOptions(DescribeExportImageStatusRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeExportImageStatus", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeExportImageStatusResponse()); } public DescribeExportImageStatusResponse describeExportImageStatus(DescribeExportImageStatusRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeExportImageStatusWithOptions(request, runtime); } public DescribeImageInfosResponse describeImageInfosWithOptions(DescribeImageInfosRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeImageInfos", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeImageInfosResponse()); } public DescribeImageInfosResponse describeImageInfos(DescribeImageInfosRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeImageInfosWithOptions(request, runtime); } public DescribeImagesResponse describeImagesWithOptions(DescribeImagesRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeImages", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeImagesResponse()); } public DescribeImagesResponse describeImages(DescribeImagesRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeImagesWithOptions(request, runtime); } public DescribeInstanceAutoRenewAttributeResponse describeInstanceAutoRenewAttributeWithOptions(DescribeInstanceAutoRenewAttributeRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeInstanceAutoRenewAttribute", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeInstanceAutoRenewAttributeResponse()); } public DescribeInstanceAutoRenewAttributeResponse describeInstanceAutoRenewAttribute(DescribeInstanceAutoRenewAttributeRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeInstanceAutoRenewAttributeWithOptions(request, runtime); } public DescribeInstanceMonitorDataResponse describeInstanceMonitorDataWithOptions(DescribeInstanceMonitorDataRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeInstanceMonitorData", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeInstanceMonitorDataResponse()); } public DescribeInstanceMonitorDataResponse describeInstanceMonitorData(DescribeInstanceMonitorDataRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeInstanceMonitorDataWithOptions(request, runtime); } public DescribeInstanceSpecResponse describeInstanceSpecWithOptions(DescribeInstanceSpecRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeInstanceSpec", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeInstanceSpecResponse()); } public DescribeInstanceSpecResponse describeInstanceSpec(DescribeInstanceSpecRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeInstanceSpecWithOptions(request, runtime); } public DescribeInstanceTypesResponse describeInstanceTypesWithOptions(DescribeInstanceTypesRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeInstanceTypes", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeInstanceTypesResponse()); } public DescribeInstanceTypesResponse describeInstanceTypes(DescribeInstanceTypesRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeInstanceTypesWithOptions(request, runtime); } public DescribeInstanceVncUrlResponse describeInstanceVncUrlWithOptions(DescribeInstanceVncUrlRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeInstanceVncUrl", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeInstanceVncUrlResponse()); } public DescribeInstanceVncUrlResponse describeInstanceVncUrl(DescribeInstanceVncUrlRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeInstanceVncUrlWithOptions(request, runtime); } public DescribeKeyPairsResponse describeKeyPairsWithOptions(DescribeKeyPairsRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeKeyPairs", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeKeyPairsResponse()); } public DescribeKeyPairsResponse describeKeyPairs(DescribeKeyPairsRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeKeyPairsWithOptions(request, runtime); } public DescribeMeasurementDataResponse describeMeasurementDataWithOptions(DescribeMeasurementDataRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeMeasurementData", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeMeasurementDataResponse()); } public DescribeMeasurementDataResponse describeMeasurementData(DescribeMeasurementDataRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeMeasurementDataWithOptions(request, runtime); } public DescribeNetworkInterfacesResponse describeNetworkInterfacesWithOptions(DescribeNetworkInterfacesRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeNetworkInterfaces", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeNetworkInterfacesResponse()); } public DescribeNetworkInterfacesResponse describeNetworkInterfaces(DescribeNetworkInterfacesRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeNetworkInterfacesWithOptions(request, runtime); } public DescribePrePaidInstanceStockResponse describePrePaidInstanceStockWithOptions(DescribePrePaidInstanceStockRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribePrePaidInstanceStock", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribePrePaidInstanceStockResponse()); } public DescribePrePaidInstanceStockResponse describePrePaidInstanceStock(DescribePrePaidInstanceStockRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describePrePaidInstanceStockWithOptions(request, runtime); } public DescribePriceResponse describePriceWithOptions(DescribePriceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribePrice", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribePriceResponse()); } public DescribePriceResponse describePrice(DescribePriceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describePriceWithOptions(request, runtime); } public DescribeSecurityGroupAttributeResponse describeSecurityGroupAttributeWithOptions(DescribeSecurityGroupAttributeRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeSecurityGroupAttribute", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeSecurityGroupAttributeResponse()); } public DescribeSecurityGroupAttributeResponse describeSecurityGroupAttribute(DescribeSecurityGroupAttributeRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeSecurityGroupAttributeWithOptions(request, runtime); } public DescribeSecurityGroupsResponse describeSecurityGroupsWithOptions(DescribeSecurityGroupsRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeSecurityGroups", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeSecurityGroupsResponse()); } public DescribeSecurityGroupsResponse describeSecurityGroups(DescribeSecurityGroupsRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeSecurityGroupsWithOptions(request, runtime); } public DescribeServcieScheduleResponse describeServcieScheduleWithOptions(DescribeServcieScheduleRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeServcieSchedule", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeServcieScheduleResponse()); } public DescribeServcieScheduleResponse describeServcieSchedule(DescribeServcieScheduleRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeServcieScheduleWithOptions(request, runtime); } public DescribeUserBandWidthDataResponse describeUserBandWidthDataWithOptions(DescribeUserBandWidthDataRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeUserBandWidthData", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeUserBandWidthDataResponse()); } public DescribeUserBandWidthDataResponse describeUserBandWidthData(DescribeUserBandWidthDataRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeUserBandWidthDataWithOptions(request, runtime); } public DescribeVSwitchesResponse describeVSwitchesWithOptions(DescribeVSwitchesRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("DescribeVSwitches", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeVSwitchesResponse()); } public DescribeVSwitchesResponse describeVSwitches(DescribeVSwitchesRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.describeVSwitchesWithOptions(request, runtime); } public ExportBillDetailDataResponse exportBillDetailDataWithOptions(ExportBillDetailDataRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("ExportBillDetailData", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new ExportBillDetailDataResponse()); } public ExportBillDetailDataResponse exportBillDetailData(ExportBillDetailDataRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.exportBillDetailDataWithOptions(request, runtime); } public ExportImageResponse exportImageWithOptions(ExportImageRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("ExportImage", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new ExportImageResponse()); } public ExportImageResponse exportImage(ExportImageRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.exportImageWithOptions(request, runtime); } public ExportMeasurementDataResponse exportMeasurementDataWithOptions(ExportMeasurementDataRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("ExportMeasurementData", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new ExportMeasurementDataResponse()); } public ExportMeasurementDataResponse exportMeasurementData(ExportMeasurementDataRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.exportMeasurementDataWithOptions(request, runtime); } public GetVmListResponse getVmListWithOptions(GetVmListRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); java.util.Map<String, String> query = com.aliyun.openapiutil.Client.query(com.aliyun.teautil.Common.toMap(request)); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("query", query) )); return TeaModel.toModel(this.doRPCRequest("GetVmList", "2017-11-10", "HTTPS", "GET", "AK", "json", req, runtime), new GetVmListResponse()); } public GetVmListResponse getVmList(GetVmListRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.getVmListWithOptions(request, runtime); } public ImportKeyPairResponse importKeyPairWithOptions(ImportKeyPairRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("ImportKeyPair", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new ImportKeyPairResponse()); } public ImportKeyPairResponse importKeyPair(ImportKeyPairRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.importKeyPairWithOptions(request, runtime); } public JoinPublicIpsToEpnInstanceResponse joinPublicIpsToEpnInstanceWithOptions(JoinPublicIpsToEpnInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("JoinPublicIpsToEpnInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new JoinPublicIpsToEpnInstanceResponse()); } public JoinPublicIpsToEpnInstanceResponse joinPublicIpsToEpnInstance(JoinPublicIpsToEpnInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.joinPublicIpsToEpnInstanceWithOptions(request, runtime); } public JoinSecurityGroupResponse joinSecurityGroupWithOptions(JoinSecurityGroupRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("JoinSecurityGroup", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new JoinSecurityGroupResponse()); } public JoinSecurityGroupResponse joinSecurityGroup(JoinSecurityGroupRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.joinSecurityGroupWithOptions(request, runtime); } public JoinVSwitchesToEpnInstanceResponse joinVSwitchesToEpnInstanceWithOptions(JoinVSwitchesToEpnInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("JoinVSwitchesToEpnInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new JoinVSwitchesToEpnInstanceResponse()); } public JoinVSwitchesToEpnInstanceResponse joinVSwitchesToEpnInstance(JoinVSwitchesToEpnInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.joinVSwitchesToEpnInstanceWithOptions(request, runtime); } public LeaveSecurityGroupResponse leaveSecurityGroupWithOptions(LeaveSecurityGroupRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("LeaveSecurityGroup", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new LeaveSecurityGroupResponse()); } public LeaveSecurityGroupResponse leaveSecurityGroup(LeaveSecurityGroupRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.leaveSecurityGroupWithOptions(request, runtime); } public ListApplicationsResponse listApplicationsWithOptions(ListApplicationsRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("ListApplications", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new ListApplicationsResponse()); } public ListApplicationsResponse listApplications(ListApplicationsRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.listApplicationsWithOptions(request, runtime); } public ModifyEpnInstanceResponse modifyEpnInstanceWithOptions(ModifyEpnInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("ModifyEpnInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new ModifyEpnInstanceResponse()); } public ModifyEpnInstanceResponse modifyEpnInstance(ModifyEpnInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.modifyEpnInstanceWithOptions(request, runtime); } public ModifyImageAttributeResponse modifyImageAttributeWithOptions(ModifyImageAttributeRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("ModifyImageAttribute", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new ModifyImageAttributeResponse()); } public ModifyImageAttributeResponse modifyImageAttribute(ModifyImageAttributeRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.modifyImageAttributeWithOptions(request, runtime); } public ModifyImageSharePermissionResponse modifyImageSharePermissionWithOptions(ModifyImageSharePermissionRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("ModifyImageSharePermission", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new ModifyImageSharePermissionResponse()); } public ModifyImageSharePermissionResponse modifyImageSharePermission(ModifyImageSharePermissionRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.modifyImageSharePermissionWithOptions(request, runtime); } public ModifyInstanceAttributeResponse modifyInstanceAttributeWithOptions(ModifyInstanceAttributeRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("ModifyInstanceAttribute", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new ModifyInstanceAttributeResponse()); } public ModifyInstanceAttributeResponse modifyInstanceAttribute(ModifyInstanceAttributeRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.modifyInstanceAttributeWithOptions(request, runtime); } public PreCreateEnsServiceResponse preCreateEnsServiceWithOptions(PreCreateEnsServiceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("PreCreateEnsService", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new PreCreateEnsServiceResponse()); } public PreCreateEnsServiceResponse preCreateEnsService(PreCreateEnsServiceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.preCreateEnsServiceWithOptions(request, runtime); } public PushApplicationDataResponse pushApplicationDataWithOptions(PushApplicationDataRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("PushApplicationData", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new PushApplicationDataResponse()); } public PushApplicationDataResponse pushApplicationData(PushApplicationDataRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.pushApplicationDataWithOptions(request, runtime); } public RebootInstanceResponse rebootInstanceWithOptions(RebootInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("RebootInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new RebootInstanceResponse()); } public RebootInstanceResponse rebootInstance(RebootInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.rebootInstanceWithOptions(request, runtime); } public ReInitDiskResponse reInitDiskWithOptions(ReInitDiskRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("ReInitDisk", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new ReInitDiskResponse()); } public ReInitDiskResponse reInitDisk(ReInitDiskRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.reInitDiskWithOptions(request, runtime); } public ReleaseEipAddressResponse releaseEipAddressWithOptions(ReleaseEipAddressRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("ReleaseEipAddress", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new ReleaseEipAddressResponse()); } public ReleaseEipAddressResponse releaseEipAddress(ReleaseEipAddressRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.releaseEipAddressWithOptions(request, runtime); } public ReleasePostPaidInstanceResponse releasePostPaidInstanceWithOptions(ReleasePostPaidInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("ReleasePostPaidInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new ReleasePostPaidInstanceResponse()); } public ReleasePostPaidInstanceResponse releasePostPaidInstance(ReleasePostPaidInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.releasePostPaidInstanceWithOptions(request, runtime); } public ReleasePrePaidInstanceResponse releasePrePaidInstanceWithOptions(ReleasePrePaidInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("ReleasePrePaidInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new ReleasePrePaidInstanceResponse()); } public ReleasePrePaidInstanceResponse releasePrePaidInstance(ReleasePrePaidInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.releasePrePaidInstanceWithOptions(request, runtime); } public RemovePublicIpsFromEpnInstanceResponse removePublicIpsFromEpnInstanceWithOptions(RemovePublicIpsFromEpnInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("RemovePublicIpsFromEpnInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new RemovePublicIpsFromEpnInstanceResponse()); } public RemovePublicIpsFromEpnInstanceResponse removePublicIpsFromEpnInstance(RemovePublicIpsFromEpnInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.removePublicIpsFromEpnInstanceWithOptions(request, runtime); } public RemoveVSwitchesFromEpnInstanceResponse removeVSwitchesFromEpnInstanceWithOptions(RemoveVSwitchesFromEpnInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("RemoveVSwitchesFromEpnInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new RemoveVSwitchesFromEpnInstanceResponse()); } public RemoveVSwitchesFromEpnInstanceResponse removeVSwitchesFromEpnInstance(RemoveVSwitchesFromEpnInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.removeVSwitchesFromEpnInstanceWithOptions(request, runtime); } public RescaleApplicationResponse rescaleApplicationWithOptions(RescaleApplicationRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("RescaleApplication", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new RescaleApplicationResponse()); } public RescaleApplicationResponse rescaleApplication(RescaleApplicationRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.rescaleApplicationWithOptions(request, runtime); } public RevokeSecurityGroupResponse revokeSecurityGroupWithOptions(RevokeSecurityGroupRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("RevokeSecurityGroup", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new RevokeSecurityGroupResponse()); } public RevokeSecurityGroupResponse revokeSecurityGroup(RevokeSecurityGroupRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.revokeSecurityGroupWithOptions(request, runtime); } public RevokeSecurityGroupEgressResponse revokeSecurityGroupEgressWithOptions(RevokeSecurityGroupEgressRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("RevokeSecurityGroupEgress", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new RevokeSecurityGroupEgressResponse()); } public RevokeSecurityGroupEgressResponse revokeSecurityGroupEgress(RevokeSecurityGroupEgressRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.revokeSecurityGroupEgressWithOptions(request, runtime); } public RollbackApplicationResponse rollbackApplicationWithOptions(RollbackApplicationRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("RollbackApplication", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new RollbackApplicationResponse()); } public RollbackApplicationResponse rollbackApplication(RollbackApplicationRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.rollbackApplicationWithOptions(request, runtime); } public RunServiceScheduleResponse runServiceScheduleWithOptions(RunServiceScheduleRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("RunServiceSchedule", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new RunServiceScheduleResponse()); } public RunServiceScheduleResponse runServiceSchedule(RunServiceScheduleRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.runServiceScheduleWithOptions(request, runtime); } public SchedulePodResponse schedulePodWithOptions(SchedulePodRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("SchedulePod", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new SchedulePodResponse()); } public SchedulePodResponse schedulePod(SchedulePodRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.schedulePodWithOptions(request, runtime); } public StartEpnInstanceResponse startEpnInstanceWithOptions(StartEpnInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("StartEpnInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new StartEpnInstanceResponse()); } public StartEpnInstanceResponse startEpnInstance(StartEpnInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.startEpnInstanceWithOptions(request, runtime); } public StartInstanceResponse startInstanceWithOptions(StartInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("StartInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new StartInstanceResponse()); } public StartInstanceResponse startInstance(StartInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.startInstanceWithOptions(request, runtime); } public StopEpnInstanceResponse stopEpnInstanceWithOptions(StopEpnInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("StopEpnInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new StopEpnInstanceResponse()); } public StopEpnInstanceResponse stopEpnInstance(StopEpnInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.stopEpnInstanceWithOptions(request, runtime); } public StopInstanceResponse stopInstanceWithOptions(StopInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("StopInstance", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new StopInstanceResponse()); } public StopInstanceResponse stopInstance(StopInstanceRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.stopInstanceWithOptions(request, runtime); } public UnassociateEipAddressResponse unassociateEipAddressWithOptions(UnassociateEipAddressRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("UnassociateEipAddress", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new UnassociateEipAddressResponse()); } public UnassociateEipAddressResponse unassociateEipAddress(UnassociateEipAddressRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.unassociateEipAddressWithOptions(request, runtime); } public UpgradeApplicationResponse upgradeApplicationWithOptions(UpgradeApplicationRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) )); return TeaModel.toModel(this.doRPCRequest("UpgradeApplication", "2017-11-10", "HTTPS", "POST", "AK", "json", req, runtime), new UpgradeApplicationResponse()); } public UpgradeApplicationResponse upgradeApplication(UpgradeApplicationRequest request) throws Exception { RuntimeOptions runtime = new RuntimeOptions(); return this.upgradeApplicationWithOptions(request, runtime); } }
68bad3da12164fdf25c2432f8745e899b8bce512
fc18d5131cfc6535a39a401fceceef414db92257
/src/main/java/core/DriverFactory.java
983ea08f8d2f05c46ec1b401e04496a2a921042f
[]
no_license
Rameg/AutomacaoWeb
88294567153a705d0dd6e804ea62776dbaeea0bd
efbaf3755542845ce9a01bdee1354e7ff647c00c
refs/heads/master
2023-05-13T12:43:53.425170
2019-11-27T20:15:17
2019-11-27T21:03:41
224,457,714
0
0
null
2023-05-09T18:37:42
2019-11-27T15:12:29
Java
UTF-8
Java
false
false
901
java
package core; import org.openqa.selenium.Dimension; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class DriverFactory { private static WebDriver driver; private DriverFactory() {} public static WebDriver getDriver(){ if(driver == null) { switch (Propriedades.browser){ case CHROME: System.setProperty("webdriver.chrome.driver", "src/main/resources/drivers/chromedriver.exe"); driver = new ChromeDriver(); break; case FIREFOX: System.setProperty("webdriver.chrome.driver", "src/main/resources/drivers/geckodriver.exe"); driver = new FirefoxDriver(); break; } driver.manage().window().setSize(new Dimension(1200, 765)); } return driver; } public static void killDriver(){ if(driver != null) { driver.quit(); driver = null; } } }
83df6e0b8a179bb0f4f1bdc14ee69c6f5240221c
0529524c95045b3232f6553d18a7fef5a059545e
/app/src/androidTest/java/TestCase_59C210BE68AD8F45C0B7D2D06688C67F9D5EF1FCF183AD843B8CFECB67A06548_1909327635.java
a40db40effa6c07c06d880c86ce3e1236c44aa6e
[]
no_license
sunxiaobiu/BasicUnitAndroidTest
432aa3e10f6a1ef5d674f269db50e2f1faad2096
fed24f163d21408ef88588b8eaf7ce60d1809931
refs/heads/main
2023-02-11T21:02:03.784493
2021-01-03T10:07:07
2021-01-03T10:07:07
322,577,379
0
0
null
null
null
null
UTF-8
Java
false
false
583
java
import android.support.v4.view.ViewCompat; import android.view.View; import androidx.test.runner.AndroidJUnit4; import org.easymock.EasyMock; import org.junit.Test; import org.junit.runner.RunWith; @RunWith(AndroidJUnit4.class) public class TestCase_59C210BE68AD8F45C0B7D2D06688C67F9D5EF1FCF183AD843B8CFECB67A06548_1909327635 { public static void testCase() throws Exception { Object var0 = EasyMock.createMock(View.class); ViewCompat.setImportantForAccessibility((View)var0, 0); } @Test public void staticTest() throws Exception { testCase(); } }
120c29714df0b31a7f1412f03e29c57202bc73b2
c8e2fcee1c86fef9f1262aec3fa20c083f5e9e40
/webdriver-framework-core/src/main/java/io/github/webdriver/config/Platform.java
39a1d2a34a392c5e647394b9cfcbf9342e679b61
[ "MIT" ]
permissive
anirudha13/webdriver-framework
db24fe658a6be178020301d0e83ddd56a7ba76ab
4c98d65700ec1517fd84fdca36e67040084ca54a
refs/heads/main
2023-06-27T11:24:13.332109
2021-07-21T15:01:21
2021-07-21T15:01:21
387,836,434
0
0
null
null
null
null
UTF-8
Java
false
false
1,911
java
package io.github.webdriver.config; import com.fasterxml.jackson.annotation.JsonProperty; public class Platform { private String name; private String os; @JsonProperty("os_version") private String osVersion; private String browser; @JsonProperty("browser_version") private String browserVersion; private String device; @JsonProperty("real_mobile") private Boolean realMobile; private String driverPath; private Capabilities capabilities; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getOs() { return os; } public void setOs(String os) { this.os = os; } public String getOsVersion() { return osVersion; } public void setOsVersion(String osVersion) { this.osVersion = osVersion; } public String getBrowser() { return browser; } public void setBrowser(String browser) { this.browser = browser; } public String getBrowserVersion() { return browserVersion; } public void setBrowserVersion(String browserVersion) { this.browserVersion = browserVersion; } public String getDevice() { return device; } public void setDevice(String device) { this.device = device; } public Boolean getRealMobile() { return realMobile; } public void setRealMobile(Boolean realMobile) { this.realMobile = realMobile; } public String getDriverPath() { return driverPath; } public void setDriverPath(String driverPath) { this.driverPath = driverPath; } public Capabilities getCapabilities() { return capabilities; } public void setCapabilities(Capabilities capabilities) { this.capabilities = capabilities; } }
e933496b7b432bbf6a38af7d22b5ce0e935ca640
aef55754a59bc2fb42313686450ec9411b385eb1
/src/AMD.java
452f7d9dbf305eec5c22597f9d8647c6149a8247
[]
no_license
naufalabrori/UTS-PBO
6a6448f9c58e1412948bdeae15de79f247aa2e0a
c0f27c8acb36c5f7be91c18231ef67041b6d4d79
refs/heads/master
2020-05-17T01:31:26.123445
2019-04-27T10:26:13
2019-04-27T10:26:13
183,429,204
0
0
null
null
null
null
UTF-8
Java
false
false
331
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author Nopal */ public class AMD extends CPU { public AMD(int kecepatan) { super("AMD", 3); } }
[ "lenovo@NOPAL" ]
lenovo@NOPAL
4aa43f7fbef183d18e4fda34b8b704d7b9fa7bfe
9a15d665a881ec6c61e0b28724baa548de794afd
/NekretnineApp-Klijent/src/sesija/Sesija.java
d8b11853cce366891077f0bd830262e4e8911624
[]
no_license
AnaColovic/NekretnineApp
29e966b4d4c495de76d13bedaf2729b60d949ac9
fc0d7e652108c1ae10da2e32717d1d69dff12e93
refs/heads/master
2020-04-26T15:01:33.168596
2019-03-03T23:01:47
2019-03-03T23:01:47
173,634,138
0
0
null
null
null
null
UTF-8
Java
false
false
855
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package sesija; import domain.Agent; /** * * @author Administrator */ public class Sesija { private static Sesija instance; private Agent prijavljeniAgent; private Sesija() { } public static Sesija getInstance(){ if(instance == null) instance = new Sesija(); return instance; } /** * @return the prijavljeniAgent */ public Agent getPrijavljeniAgent() { return prijavljeniAgent; } /** * @param prijavljeniAgent the prijavljeniAgent to set */ public void setPrijavljeniAgent(Agent prijavljeniAgent) { this.prijavljeniAgent = prijavljeniAgent; } }
18733d49ee44b62d89bf3b589e834fe0b90608bf
50af266dc0a80ca2cae935a6ac8312bd8c9431d2
/projects/rates-final-example-master/app/src/main/java/ru/dimasokol/currencies/storage/CurrenciesStorage.java
12aa49c147d147c0391020d8b8b11b23d986a44f
[]
no_license
popovbodya/learning-android
787339ffdcaf1ff103f9bb470baa8037f0c2dade
a6429e513c308620017922f9ddd163a612a55f49
refs/heads/master
2021-06-20T01:12:14.118835
2017-08-10T16:11:40
2017-08-10T16:11:40
87,315,923
1
0
null
null
null
null
UTF-8
Java
false
false
1,007
java
package ru.dimasokol.currencies.storage; import android.support.annotation.Nullable; import ru.dimasokol.currencies.networking.CurrenciesList; import ru.dimasokol.currencies.networking.Currency; /** * @author Дмитрий Соколов <[email protected]> */ public final class CurrenciesStorage { private CurrenciesList mLoadedList; public synchronized boolean isReady() { return mLoadedList != null; } public synchronized CurrenciesList getLoadedList() { return mLoadedList; } public synchronized void setLoadedList(CurrenciesList loadedList) { mLoadedList = loadedList; } @Nullable public synchronized Currency findByCode(@Nullable String code) { if (mLoadedList != null && code != null) { for (Currency currency: mLoadedList.getCurrencies()) { if (currency.getCharCode().equals(code)) { return currency; } } } return null; } }
cd75d2fb21f2ed28845970cf8be6014f7713f204
c1ffc1154127b360eebd49e773edbac239aca3eb
/DesignPattern/src/main/java/com/design/chainofresponsibility/handler/DeanHandle.java
ab85d316f02a32500042ca6226d9c5e1d822f112
[ "MIT" ]
permissive
dolyw/ProjectStudy
76053e1142148767d5bd3dbf6bb9a4e5947224b0
0d6991a1cbdc57b779ad125809540bce581d3943
refs/heads/master
2023-06-25T22:30:52.087332
2023-06-13T07:45:32
2023-06-13T07:45:32
199,820,313
63
55
MIT
2022-06-17T03:17:48
2019-07-31T09:06:20
Java
UTF-8
Java
false
false
692
java
package com.design.chainofresponsibility.handler; /** * 院长具体处理者Concrete Handler * * @author wliduo[[email protected]] * @date 2022/1/19 11:06 */ public class DeanHandle extends AbstractLeaderHandle { /** * 处理请求的方法 * * @param day * @param remark * @return void * @throws * @author wliduo[[email protected]] * @date 2022/1/19 11:21 */ @Override public void handleRequest(Integer day, String remark) { if (day <= 10) { System.out.println("院长批准了你的假期" + day + "天,备注:" + remark); } else { this.handleNext(this.getNext(), day, remark); } } }
c24737b25c29e913ecf9c6d29669c1af4dae9d49
07e6770f411ab61c501bffe57579b438d002aab1
/indexing-service/src/main/java/org/apache/druid/indexing/common/task/batch/parallel/PartialHashSegmentGenerateTask.java
d7f88620771969a39ef296a28b7bd1e43a7e26c5
[ "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-3-Clause", "MIT", "CC-BY-SA-3.0", "CDDL-1.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-westhawk", "CDDL-1.1", "LicenseRef-scancode-sun-no-high-risk-activities", "LicenseRef-scancode-free-unknown", "ICU", "LicenseRef-scancode-unicode", "MPL-2.0", "CC-PDDC", "LicenseRef-scancode-unknown-license-reference", "CC-BY-2.5", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "EPL-1.0", "Classpath-exception-2.0", "GPL-2.0-only", "BSD-2-Clause", "GCC-exception-3.1" ]
permissive
VladimirIordanov/incubator-druid
f1a775462de07e074e3311151fbceeac0e22a9c0
d0a6fe7f120b29f92efdf17d6eb909568e93a3b4
refs/heads/master
2020-08-08T13:54:11.810259
2019-12-04T02:36:28
2019-12-04T02:36:28
213,843,054
0
1
Apache-2.0
2019-12-04T14:10:34
2019-10-09T06:52:49
Java
UTF-8
Java
false
false
6,526
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.indexing.common.task.batch.parallel; import com.fasterxml.jackson.annotation.JacksonInject; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import org.apache.druid.client.indexing.IndexingServiceClient; import org.apache.druid.indexer.partitions.HashedPartitionsSpec; import org.apache.druid.indexing.common.TaskToolbox; import org.apache.druid.indexing.common.actions.TaskActionClient; import org.apache.druid.indexing.common.task.HashPartitionCachingLocalSegmentAllocator; import org.apache.druid.indexing.common.task.IndexTaskClientFactory; import org.apache.druid.indexing.common.task.IndexTaskSegmentAllocator; import org.apache.druid.indexing.common.task.TaskResource; import org.apache.druid.indexing.common.task.batch.parallel.iterator.DefaultIndexTaskInputRowIteratorBuilder; import org.apache.druid.java.util.common.Pair; import org.apache.druid.segment.indexing.granularity.GranularitySpec; import org.apache.druid.segment.realtime.appenderator.AppenderatorsManager; import org.apache.druid.timeline.DataSegment; import org.apache.druid.timeline.partition.ShardSpecFactory; import org.joda.time.Interval; import javax.annotation.Nullable; import java.io.IOException; import java.util.List; import java.util.Map; import java.util.stream.Collectors; /** * The worker task of {@link PartialHashSegmentGenerateParallelIndexTaskRunner}. This task partitions input data by * hashing the segment granularity and partition dimensions in {@link HashedPartitionsSpec}. Partitioned segments are * stored in local storage using {@link org.apache.druid.indexing.worker.ShuffleDataSegmentPusher}. */ public class PartialHashSegmentGenerateTask extends PartialSegmentGenerateTask<GeneratedHashPartitionsReport> { public static final String TYPE = "partial_index_generate"; private static final String PROP_SPEC = "spec"; private final int numAttempts; private final ParallelIndexIngestionSpec ingestionSchema; private final String supervisorTaskId; @JsonCreator public PartialHashSegmentGenerateTask( // id shouldn't be null except when this task is created by ParallelIndexSupervisorTask @JsonProperty("id") @Nullable String id, @JsonProperty("groupId") final String groupId, @JsonProperty("resource") final TaskResource taskResource, @JsonProperty("supervisorTaskId") final String supervisorTaskId, @JsonProperty("numAttempts") final int numAttempts, // zero-based counting @JsonProperty(PROP_SPEC) final ParallelIndexIngestionSpec ingestionSchema, @JsonProperty("context") final Map<String, Object> context, @JacksonInject IndexingServiceClient indexingServiceClient, @JacksonInject IndexTaskClientFactory<ParallelIndexSupervisorTaskClient> taskClientFactory, @JacksonInject AppenderatorsManager appenderatorsManager ) { super( getOrMakeId(id, TYPE, ingestionSchema.getDataSchema().getDataSource()), groupId, taskResource, supervisorTaskId, ingestionSchema, context, indexingServiceClient, taskClientFactory, appenderatorsManager, new DefaultIndexTaskInputRowIteratorBuilder() ); this.numAttempts = numAttempts; this.ingestionSchema = ingestionSchema; this.supervisorTaskId = supervisorTaskId; } @JsonProperty public int getNumAttempts() { return numAttempts; } @JsonProperty(PROP_SPEC) public ParallelIndexIngestionSpec getIngestionSchema() { return ingestionSchema; } @JsonProperty public String getSupervisorTaskId() { return supervisorTaskId; } @Override public String getType() { return TYPE; } @Override public boolean isReady(TaskActionClient taskActionClient) throws Exception { return tryTimeChunkLock( taskActionClient, getIngestionSchema().getDataSchema().getGranularitySpec().inputIntervals() ); } @Override IndexTaskSegmentAllocator createSegmentAllocator(TaskToolbox toolbox) throws IOException { return new HashPartitionCachingLocalSegmentAllocator( toolbox, getId(), getDataSource(), createShardSpecs() ); } @Override GeneratedHashPartitionsReport createGeneratedPartitionsReport(TaskToolbox toolbox, List<DataSegment> segments) { List<HashPartitionStat> partitionStats = segments.stream() .map(segment -> createPartitionStat(toolbox, segment)) .collect(Collectors.toList()); return new GeneratedHashPartitionsReport(getId(), partitionStats); } private HashPartitionStat createPartitionStat(TaskToolbox toolbox, DataSegment segment) { return new HashPartitionStat( toolbox.getTaskExecutorNode().getHost(), toolbox.getTaskExecutorNode().getPortToUse(), toolbox.getTaskExecutorNode().isEnableTlsPort(), segment.getInterval(), segment.getShardSpec().getPartitionNum(), null, // numRows is not supported yet null // sizeBytes is not supported yet ); } private Map<Interval, Pair<ShardSpecFactory, Integer>> createShardSpecs() { GranularitySpec granularitySpec = ingestionSchema.getDataSchema().getGranularitySpec(); final ParallelIndexTuningConfig tuningConfig = ingestionSchema.getTuningConfig(); final HashedPartitionsSpec partitionsSpec = (HashedPartitionsSpec) tuningConfig.getGivenOrDefaultPartitionsSpec(); return createShardSpecWithoutInputScan( granularitySpec, ingestionSchema.getIOConfig(), tuningConfig, partitionsSpec ); } }
7523bfb45e6bee73da7d35fa4cb222c15b72dd30
64a0a18000ae842ad80194aaaf545c859230833f
/app/src/main/java/com/FlashScreen/flashservice/GoogleClasses/GooglePlacesAutocompleteAdapter.java
d2d1fb86377657039fe8f0d40acde46940b1e056
[]
no_license
bittubushera98557/FlashServicesUser
085650d757537b29fdfc77252d7b4c2459d043fc
6d5a035da5d9e7a3f0705e7db4f345ce855cd593
refs/heads/master
2020-12-20T04:10:19.739228
2020-01-24T07:20:47
2020-01-24T07:20:47
235,956,988
0
0
null
null
null
null
UTF-8
Java
false
false
6,190
java
package com.FlashScreen.flashservice.GoogleClasses; import android.content.Context; import android.util.Log; import android.widget.ArrayAdapter; import android.widget.Filter; import android.widget.Filterable; import com.FlashScreen.flashservice.Common.Const; import com.FlashScreen.flashservice.R; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.net.URLEncoder; import java.util.ArrayList; /** * Created by tuff on 14-Apr-16. */ public class GooglePlacesAutocompleteAdapter extends ArrayAdapter implements Filterable { private ArrayList resultList; private static String PLACES_API_BASE = "https://maps.googleapis.com/maps/api/place"; private static final String TYPE_AUTOCOMPLETE = "/autocomplete"; private static final String OUT_JSON = "/json"; private static final String API_KEY2 = "AIzaSyB0AlQDQNwZd5GNEk9ZZCwoomXMmU_Pcn0"; String TAG="GooglePlacesAutocompleteAdapter "; public GooglePlacesAutocompleteAdapter(Context context, int textViewResourceId) { super(context, textViewResourceId); Log.e(TAG+" URL", " "+PLACES_API_BASE ); } @Override public int getCount() { return resultList.size(); } @Override public String getItem(int index) { return resultList.get(index).toString(); } @Override public Filter getFilter() { Filter filter = new Filter() { @Override protected FilterResults performFiltering(CharSequence constraint) { FilterResults filterResults = new FilterResults(); if (constraint != null) { // Retrieve the autocomplete results. resultList = autocomplete(constraint.toString()+" ludhiana punjab,india"); // Assign the data to the FilterResults filterResults.values = resultList; filterResults.count = resultList.size(); } return filterResults; } @Override protected void publishResults(CharSequence constraint, FilterResults results) { if (results != null && results.count > 0) { notifyDataSetChanged(); } else { notifyDataSetInvalidated(); } } }; return filter; } public static ArrayList autocomplete(String input) { ArrayList resultList = null; HttpURLConnection conn = null; StringBuilder jsonResults = new StringBuilder(); try { /////////// StringBuilder sb = new StringBuilder(PLACES_API_BASE + TYPE_AUTOCOMPLETE + OUT_JSON); sb.append("?key=" + API_KEY2); // sb.append("&types=geocode"); // sb.append("&components=country:in"); sb.append("&sensor=false"); sb.append("&input=" + URLEncoder.encode(input, "utf8")); //////////////// /* StringBuilder sb = new StringBuilder(PLACES_API_BASE + TYPE_AUTOCOMPLETE + OUT_JSON); sb.append("?key=" + API_KEY2); sb.append("&types=geocode"); // sb.append("&components=country:in"); sb.append("&input=" + URLEncoder.encode(input, "utf8"));*/ URL url = new URL(sb.toString()); conn = (HttpURLConnection) url.openConnection(); InputStreamReader in = new InputStreamReader(conn.getInputStream()); // Load the results into a StringBuilder Log.d( "autocomplete URL", " " + url); int read; char[] buff = new char[1024]; while ((read = in.read(buff)) != -1) { jsonResults.append(buff, 0, read); } } catch (MalformedURLException e) { Log.e("autocomplete", "ErrorprocessingPlacesAPI URL", e); return resultList; } catch (IOException e) { Log.e("autocomplete", "ErrorconnectingtPlacesAPI", e); return resultList; } finally { if (conn != null) { conn.disconnect(); } } try { JSONObject jsonObj = new JSONObject(jsonResults.toString()); JSONArray predsJsonArray = jsonObj.getJSONArray("predictions"); Log.d("autocomplete DATA", "" + jsonObj); // Extract the Place descriptions from the results resultList = new ArrayList(predsJsonArray.length()); Const.place_id=new String[predsJsonArray.length()]; for (int i = 0; i < predsJsonArray.length(); i++) { System.out.println(predsJsonArray.getJSONObject(i).getString("description")); // Log.e("-----place_id", predsJsonArray.getJSONObject(i).getString("place_id")); Const.place_id[i]=predsJsonArray.getJSONObject(i).getString("place_id"); System.out.println("============================================================"); resultList.add(predsJsonArray.getJSONObject(i).getString("description")); } /*// Create a JSON object hierarchy from the results JSONObject jsonObj = new JSONObject(jsonResults.toString()); JSONArray predsJsonArray = jsonObj.getJSONArray("predictions"); Log.d("DATA", "" + jsonObj); // Extract the Place descriptions from the results resultList = new ArrayList(predsJsonArray.length()); for (int i = 0; i < predsJsonArray.length(); i++) { System.out.println(predsJsonArray.getJSONObject(i).getString("description")); System.out.println("============================================================"); resultList.add(predsJsonArray.getJSONObject(i).getString("description")); }*/ } catch (JSONException e) { Log.e("autocomplete", "CanprocessJSONresults", e); } return resultList; } }
[ "bittubushera98557" ]
bittubushera98557
60dbf53fd639e6a175372c70c2230835197ae2b0
704ae5acd5d41107a4dc3aba61aa94a7086a2b1e
/de.blizzy.backup/src/de/blizzy/backup/settings/Settings.java
93ed86bffa98482403f5afae86efab98f1e7d16a
[]
no_license
blizzy78/blizzys-backup
e8cb49d05a3ad146d1ecc5c2f4c10d3797311bfa
a416faca8d6a5e71a020749aba66480ff8f35f52
refs/heads/master
2021-01-01T06:45:25.495345
2014-08-13T17:07:13
2014-08-13T17:07:13
3,137,442
0
0
null
null
null
null
UTF-8
Java
false
false
2,103
java
/* blizzy's Backup - Easy to use personal file backup application Copyright (C) 2011-2012 Maik Schreiber This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ package de.blizzy.backup.settings; import java.util.Set; import de.blizzy.backup.vfs.ILocation; public class Settings { private Set<ILocation> locations; private String outputFolder; private boolean runHourly; private int dailyHours; private int dailyMinutes; private boolean useChecksums; private int maxAgeDays; private int maxDiskFillRate; public Settings(Set<ILocation> locations, String outputFolder, boolean runHourly, int dailyHours, int dailyMinutes, boolean useChecksums, int maxAgeDays, int maxDiskFillRate) { this.locations = locations; this.outputFolder = outputFolder; this.runHourly = runHourly; this.dailyHours = dailyHours; this.dailyMinutes = dailyMinutes; this.useChecksums = useChecksums; this.maxAgeDays = maxAgeDays; this.maxDiskFillRate = maxDiskFillRate; } public Set<ILocation> getLocations() { return locations; } public String getOutputFolder() { return outputFolder; } public boolean isRunHourly() { return runHourly; } public int getDailyHours() { return dailyHours; } public int getDailyMinutes() { return dailyMinutes; } public boolean isUseChecksums() { return useChecksums; } public int getMaxAgeDays() { return maxAgeDays; } public int getMaxDiskFillRate() { return maxDiskFillRate; } }
e49d7160cdb15946b0ca33d18fbacc74b4867c16
7127b24e1c98a1629708b92a97e963208d6ce7a9
/app/src/main/java/mrmusicplayer/mrcoder/com/android_me/data/AndroidImageAssets.java
7e06e0800bc23f1a3c28097a700c86e69e9b5229
[]
no_license
rohitgurjar058/Android-Me-Fragment
fc34cd695e7c6d2fd53630625ec078142e367dbe
fb1d6337bfc1e9445990209ec968766954c290a9
refs/heads/master
2020-03-17T23:28:57.808597
2018-05-22T16:13:13
2018-05-22T16:13:13
134,047,332
0
0
null
2018-05-22T16:13:14
2018-05-19T09:14:42
Java
UTF-8
Java
false
false
2,326
java
package mrmusicplayer.mrcoder.com.android_me.data; import java.util.ArrayList; import java.util.List; import mrmusicplayer.mrcoder.com.android_me.R; /** * Created by rohit on 19/5/18. */ public class AndroidImageAssets { // Lists for all AndroidMe images // Broken down into heads, bodies, legs, and all images private static final List<Integer> heads = new ArrayList<Integer>() {{ add(R.drawable.head1); add(R.drawable.head2); add(R.drawable.head3); add(R.drawable.head4); add(R.drawable.head5); add(R.drawable.head6); add(R.drawable.head7); add(R.drawable.head8); add(R.drawable.head9); add(R.drawable.head10); add(R.drawable.head11); add(R.drawable.head12); }}; private static final List<Integer> bodies = new ArrayList<Integer>() {{ add(R.drawable.body1); add(R.drawable.body2); add(R.drawable.body3); add(R.drawable.body4); add(R.drawable.body5); add(R.drawable.body6); add(R.drawable.body7); add(R.drawable.body8); add(R.drawable.body9); add(R.drawable.body10); add(R.drawable.body11); add(R.drawable.body12); }}; private static final List<Integer> legs = new ArrayList<Integer>() {{ add(R.drawable.legs1); add(R.drawable.legs2); add(R.drawable.legs3); add(R.drawable.legs4); add(R.drawable.legs5); add(R.drawable.legs6); add(R.drawable.legs7); add(R.drawable.legs8); add(R.drawable.legs9); add(R.drawable.legs10); add(R.drawable.legs11); add(R.drawable.legs12); }}; private static final List<Integer> all = new ArrayList<Integer>() {{ addAll(heads); addAll(bodies); addAll(legs); }}; // Getter methods that return lists of all head images, body images, and leg images public static List<Integer> getHeads() { return heads; } public static List<Integer> getBodies() { return bodies; } public static List<Integer> getLegs() { return legs; } // Returns a list of all the images combined: heads, bodies, and legs in that order public static List<Integer> getAll() { return all; } }
297e5754d217efb4c2b8c01d794d37dd229e3441
ca7f516d769403c114cc069033e9c2f1598e15ee
/src/Inter/hp/DefaultCtor.java
38ea9a76aace6ce42b7455e65105ecf5cd5725b7
[]
no_license
ronib/Learn
38f7839da7dd03dc9b80306c60c085a270d86eb9
3cf9edcc5dba5324199d48b22e160344381b74db
refs/heads/master
2021-01-10T04:27:12.185137
2020-06-09T19:33:37
2020-06-09T19:33:37
50,981,702
0
0
null
2016-02-05T21:31:18
2016-02-03T07:17:54
null
UTF-8
Java
false
false
394
java
package Inter.hp; /** * Created with IntelliJ IDEA. * User: ronib * Date: 1/9/16 * Time: 5:51 PM * To change this template use File | Settings | File Templates. */ public class DefaultCtor { int x=0; DefaultCtor(int w){ x = w; } DefaultCtor(){}; class B extends DefaultCtor{ int x=0; B(int w) { x=w+1; } } }
40634f24bd61674b5985427f5f1e6ab381a9bc67
8191bea395f0e97835735d1ab6e859db3a7f8a99
/com.miui.calculator_source_from_JADX/com/miui/support/internal/log/util/AppendableFormatter.java
ef6961cf4b27afa1722e643c96ce16163e837567
[]
no_license
msmtmsmt123/jadx-1
5e5aea319e094b5d09c66e0fdb31f10a3238346c
b9458bb1a49a8a7fba8b9f9a6fb6f54438ce03a2
refs/heads/master
2021-05-08T19:21:27.870459
2017-01-28T04:19:54
2017-01-28T04:19:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,013
java
package com.miui.support.internal.log.util; import java.util.Formatter; import java.util.Locale; public class AppendableFormatter { private Formatter f2540a; private AppendableWrapper f2541b; private static class AppendableWrapper implements Appendable { private Appendable f2539a; private AppendableWrapper() { } public Appendable append(char c) { this.f2539a.append(c); return this; } public Appendable append(CharSequence charSequence) { this.f2539a.append(charSequence); return this; } public Appendable append(CharSequence charSequence, int i, int i2) { this.f2539a.append(charSequence, i, i2); return this; } } public AppendableFormatter() { this(Locale.US); } public AppendableFormatter(Locale locale) { this.f2541b = new AppendableWrapper(); this.f2540a = new Formatter(this.f2541b, locale); } }
b4133147198a2e34ab2d5eccf6d4b7df53995bc3
0454bfc6edac1858765d9e55a2c8c1729485295f
/LAB_2/L2Q1/app/src/androidTest/java/com/example/rakshit/l2q1/ExampleInstrumentedTest.java
bd6bf7baa49ee2b090fcbeba1ed05e63e6aab19f
[]
no_license
rakshit97/MAD-LAB
6acfebddcbd43d69403ae12674fa94eb3b3c9ea8
bd17a51ce4988686568ce4933c4dcf150e4b76d7
refs/heads/master
2021-05-10T11:26:00.345159
2018-03-12T05:36:13
2018-03-12T05:36:13
118,411,005
3
4
null
null
null
null
UTF-8
Java
false
false
723
java
package com.example.rakshit.l2q1; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.example.rakshit.l2q1", appContext.getPackageName()); } }
73489991c7897bf811eb2f678aac2a6c6b8a072f
ce9e663cfc8272257219d644363a374d73c29a93
/BackEnd/MongdokLogin/src/main/java/com/web/mongdok/entity/BaseTimeEntity.java
0196ba537720cedab803de0932fb00a6b4038dd6
[]
no_license
mongsil-disciples/mongdok-src
27103182f01885d77844eae4121c1412b82cd6cd
47ec66f11351ecf4f3bab6b3281443a97916e28f
refs/heads/master
2023-08-19T06:21:42.746933
2021-05-21T01:42:35
2021-05-21T01:42:35
371,336,310
2
0
null
null
null
null
UTF-8
Java
false
false
841
java
package com.web.mongdok.entity; import java.time.LocalDateTime; import javax.persistence.EntityListeners; import javax.persistence.MappedSuperclass; import org.springframework.data.annotation.CreatedBy; import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.LastModifiedBy; import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; import lombok.Getter; @Getter @MappedSuperclass @EntityListeners(AuditingEntityListener.class) public abstract class BaseTimeEntity { @CreatedDate private LocalDateTime createdAt; @CreatedBy private String createdBy = "Server 1"; @LastModifiedDate private LocalDateTime updatedAt; @LastModifiedBy private String updatedBy = "Server 1"; }
5238e240ceac47ef0363b244a19566397e59a370
feeecd3a7b6e8ce457f5b29251e13c203cca2fca
/INS14C.java
03a911c6fe2889af04f9719a016d3c57b8d4e243
[]
no_license
thehjain/Spoj
46be7d77a90b10f6a7c576c45f697697260052c7
ec378e022d8ae1f3856866fc0b54a850b3a5d5ea
refs/heads/main
2023-03-29T16:08:58.540149
2021-04-08T05:31:47
2021-04-08T05:31:47
326,237,028
0
0
null
null
null
null
UTF-8
Java
false
false
1,951
java
import java.util.*; import java.io.*; import java.math.*; class INS14C { private static int MAX = Integer.MAX_VALUE; private static int MIN = Integer.MIN_VALUE; private static int MOD = 1000000007; static FastScanner sc = new FastScanner(); public static void main(String[] args) throws IOException { int T = sc.nextInt(); while (T-- > 0) { solve(); } } static void solve() throws IOException { int n = sc.nextInt(); int k = sc.nextInt(); char[] arr = sc.next().toCharArray(); ArrayList<Integer> zero = new ArrayList<>(); ArrayList<Integer> one = new ArrayList<>(); for (int i = 0; i < n; i++) { if (arr[i] == 48) zero.add(i); else one.add(i); } int count = 1; for (int i = 0, j = 0; count <= n - k; count++) { if ((count & 1) == 1) { if (i < one.size()) arr[one.get(i++)] = 50; else arr[zero.get(j++)] = 50; } else { if (j < zero.size()) arr[zero.get(j++)] = 50; else arr[one.get(i++)] = 50; } } for (int i = 0; i < n; i++) if (arr[i] != 50) System.out.print(arr[i]); System.out.println(); } static class FastScanner { public BufferedReader reader; public StringTokenizer tokenizer; public FastScanner() { reader = new BufferedReader(new InputStreamReader(System.in), 32768); tokenizer = null; } public String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } public int nextInt() { return Integer.parseInt(next()); } public long nextLong() { return Long.parseLong(next()); } public double nextDouble() { return Double.parseDouble(next()); } public String nextLine() { try { return reader.readLine(); } catch (IOException e) { throw new RuntimeException(e); } } } }
ff1cf71288baefcf873dad26a364b50c2865a76b
cb80fddf6d0981fd1cdff7a804346262ed78196d
/BodyMass.java
cf9066189d7aa230004f81f323409b9319af3210
[]
no_license
nmallory/SwapStringApp
49b87a6233a8abee0b91a4d1c8f4db03677ce868
64dddbe80abcf70ae680e581d1c9f65400877c00
refs/heads/master
2021-06-08T03:13:42.248714
2016-12-05T02:43:22
2016-12-05T02:43:22
75,361,186
0
0
null
null
null
null
UTF-8
Java
false
false
826
java
import java.util.Scanner; public class BodyMass { public static void main(String[] args) { // Variables double weight; double height; double bmi; String choice; //Create scanner Scanner input = new Scanner(System.in); //Welcome message System.out.println("Welcome to the body mass calcular"); do{ //Prompt user to enter weight System.out.println("Please enter weight:"); weight = input.nextDouble(); //Prompt user to enter height System.out.println("Please enter height:"); height = input.nextDouble(); //Display BMI System.out.println("Your BMI Index is:" +BMI.calculateBMI(height, weight)); //Ask user if they want to continue System.out.println("Continue (y/n)"); choice = input.next(); } while(choice.equalsIgnoreCase("y")); } }
2d5b87d3eeaa6329e744a0ec81408ae037ada061
94cf49e2caf49fba64bba094a17821ffb2558159
/src/main/java/com/game/inputhandler/Operation.java
31f166a18ebfd4ee61fc4d6f0c0b8da3c6fff5ee
[]
no_license
vishalraut20/game-blueprint
715290fe4ec6222fded8f7be7b7ba5cdfc4d1b0a
911570871337324ccf265d3332f0f2f1cc3bafe7
refs/heads/master
2020-03-29T01:42:39.924442
2018-09-26T17:47:31
2018-09-26T17:47:31
149,402,387
0
0
null
null
null
null
UTF-8
Java
false
false
132
java
package com.game.inputhandler; @FunctionalInterface public interface Operation { String performOperation(String inputIndex); }
4201fd429fc7d8d8cb5b3e699e69623f6a6ba1e4
efe87218fc77588725dba3bea1c39c32c003fb17
/src/main/java/com/malkomich/hashcode2017/data/VideoList.java
5e0f4c7febccda49bc7fd2baa60b2d84c53af336
[]
no_license
malkomich/hashcode2017
3b1a54a4e8188e333e917d374a648be51de462a4
4d1d87bc7ac6ade334b8d57fc0415e877391f365
refs/heads/master
2021-01-17T06:10:15.031900
2017-03-07T19:34:14
2017-03-07T19:34:14
83,129,301
0
0
null
null
null
null
UTF-8
Java
false
false
1,138
java
package com.malkomich.hashcode2017.data; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import com.malkomich.hashcode2017.logic.Parseable; import com.malkomich.hashcode2017.logic.VideoFinder; public class VideoList implements Parseable, VideoFinder { private Map<Integer, Video> videosMap; public VideoList() { videosMap = new HashMap<>(); } @Override public VideoList parseLine(String line) { String[] stringParams = line.split(" "); for(int i = 0; i < stringParams.length; i++) { videosMap.put(i, new Video(i, Integer.parseInt(stringParams[i]))); } return this; } @Override public String toString() { StringBuilder stb = new StringBuilder(); int cont = 1; stb.append("Videos: {"); for(Entry<Integer,Video> item: videosMap.entrySet()) { stb.append(String.format("%d: \"%dMB\"", item.getKey(), item.getValue().getSize())); stb.append(cont < videosMap.size() ? ", ": ""); cont++; } stb.append("}"); return stb.toString(); } @Override public Video getVideoById(int id) { return videosMap.get(id); } }
10bd6386cb09a1da50deef68964218042bb66118
3f94f383538c5acf1c8b4183a3ccd39894839533
/jiwoo_demo/src/main/java/com/example/demo/ZipCodeController.java
a00da3299e729850191f487fdaa3d805c3c0b418
[]
no_license
kanggiwu/repo_demo
dd0300aded55550bfee7e915e16d0f8fead0e2f9
126047faee891704f2c216fb3a17148f86d38f01
refs/heads/main
2023-04-21T02:21:00.881088
2021-05-20T09:27:17
2021-05-20T09:27:17
369,047,232
0
0
null
null
null
null
UTF-8
Java
false
false
1,791
java
package com.example.demo; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller //컨트롤과 업무가 1:1로 매칭되어 있음 @RequestMapping("/zipcode/*")//사용자가 요청(url)을 작성(/zipcode/*) 한 것이 java 와 연결 public class ZipCodeController { Logger logger = LogManager.getLogger(ZipCodeController.class); @Autowired(required=true)//외부로부터 객체 주입 private ZipCodeLogic zipCodeLogic = null; @RequestMapping("getZipCodeList") public String getZipCodeList(HttpServletRequest req) { logger.info("getZipCodeList 호출 성공"); List<Map<String,Object>> zipList = null; zipList = zipCodeLogic.getZipCodeList(); req.setAttribute("zipList", zipList); //return "forward:getZipCodeList.jsp"; //WEB-INF/jsp/zipcode/getZipCodeList.jsp.jsp -> 404 return "zipcode/getZipCodeList"; } @RequestMapping("getZipCodeList2") //MOdelAndView 자체의 scope가 reqeust -> parameter에 request가 없어도 돌아간다. public ModelAndView getZipCodeList2() { logger.info("getZipCodeList 호출 성공"); List<Map<String,Object>> zipList = null; zipList = zipCodeLogic.getZipCodeList(); ModelAndView mav = new ModelAndView(); mav.setViewName("zipcode/getZipCodeList"); mav.addObject("zipList", zipList); //return "forward:getZipCodeList.jsp"; //WEB-INF/jsp/zipcode/getZipCodeList.jsp.jsp -> 404 //return "zipcode/getZipCodeList"; return mav; } }
fd4fca3e7882c9fa6aa3c4af16280aafe16cb26c
21d70bfeb8139da4c458351463d3059ddeabcdf3
/java SE阶段/day01_Object,常用API/代码/day01-code/src/cn/itcast/demo04_calendar/Demo04Calendar.java
8b565be9c37f14e4444be6dd785e0d7e04ecb23a
[]
no_license
Zhangxb1111/techSource
92322e1fba28da1fa067b629c7926bbde34c3014
9e3e690ea380323ff857249a699f62414eb8bfd2
refs/heads/master
2023-01-20T00:18:50.703877
2020-11-17T12:57:47
2020-11-17T12:57:47
299,050,652
1
0
null
null
null
null
UTF-8
Java
false
false
1,366
java
package cn.itcast.demo04_calendar; import java.util.Calendar; /* 在Calendar中有一个方法,可以对指定的字段进行计算,这个方法叫做add。 void add​(int field, int amount): 表示对指定的字段进行计算 参数field: 表示要对哪个字段进行计算。 参数amount: 是对字段加上指定值呢还是减去指定值呢 如果这个参数是正数,就表示在原来的数据基础上加上这个数字 如果这个参数是负数,就表示在原来数据的基础上减去这个数字。 */ public class Demo04Calendar { public static void main(String[] args) { //获取到一个Calendar对象 Calendar c = Calendar.getInstance(); //打印这个日历对象的内容 System.out.println(c.get(Calendar.YEAR) + "-" + (c.get(Calendar.MONTH) + 1) + '-' + c.get(Calendar.DAY_OF_MONTH)); //对日历对象的字段进行计算 //把年加上2 //c.add(Calendar.YEAR, 2); //c.add(Calendar.YEAR, -2); //表示年往前移动了两年。 //对月进行计算 c.add(Calendar.MONTH, 6); System.out.println(c.get(Calendar.YEAR) + "-" + (c.get(Calendar.MONTH) + 1) + '-' + c.get(Calendar.DAY_OF_MONTH)); } }
f79bc1d969e8d8052a9a76a708966c91b9a64deb
9a8a812ce91d2ded014a8e192633953a78fff58f
/R06-ListaLigadaIterativa/src/test/java/adt/linkedList/StudentDoubleLinkedListTest.java
9985649dea053c0f59fa7ec6071e74fb9f04da64
[]
no_license
RuanGOA/LEDA
02d2e496dc7848f3a24478ab71c892d2c086dac2
c38b2e08edd3547a733fdeafb611cf2637484893
refs/heads/master
2020-07-05T08:45:45.185356
2019-11-20T20:43:06
2019-11-20T20:43:06
202,594,837
1
0
null
null
null
null
UTF-8
Java
false
false
1,234
java
package adt.linkedList; import org.junit.Assert; import org.junit.Before; import org.junit.Test; public class StudentDoubleLinkedListTest extends StudentLinkedListTest { private DoubleLinkedList<Integer> lista3; @Before public void setUp() throws Exception { getImplementations(); // Lista com 3 elementos. lista1.insert(3); lista1.insert(2); lista1.insert(1); // Lista com 1 elemento. lista3.insert(1); } private void getImplementations() { // TODO O aluno deve ajustar aqui para instanciar sua implementação lista1 = new DoubleLinkedListImpl<Integer>(); lista2 = new DoubleLinkedListImpl<Integer>();; lista3 = new DoubleLinkedListImpl<Integer>();; } // Métodos de DoubleLinkedList @Test public void testInsertFirst() { ((DoubleLinkedList<Integer>) lista1).insertFirst(4); Assert.assertArrayEquals(new Integer[] { 4, 3, 2, 1 }, lista1.toArray()); } @Test public void testRemoveFirst() { ((DoubleLinkedList<Integer>) lista1).removeFirst(); Assert.assertArrayEquals(new Integer[] { 2, 1 }, lista1.toArray()); } @Test public void testRemoveLast() { ((DoubleLinkedList<Integer>) lista1).removeLast(); Assert.assertArrayEquals(new Integer[] { 3, 2 }, lista1.toArray()); } }
2ba4ba4a6d6e05e522841c0e76c77d7d3d2f9215
68f27fad46772bb80bb41eb3145a26b519b64058
/ide/api.lsp/test/unit/src/org/netbeans/api/lsp/HoverTest.java
3d2dd5a878c8639edceeea6ea4c30448b7b7d6f7
[ "Apache-2.0" ]
permissive
funfried/netbeans
aff8b94461675ded8b9ab52e9108cf28769540ad
dcc34cd16ddf44496338acb6e9a7346fcd55fa55
refs/heads/master
2021-12-30T00:45:13.162312
2021-12-27T22:01:06
2021-12-27T22:01:06
226,071,842
1
0
Apache-2.0
2019-12-05T10:06:16
2019-12-05T10:06:16
null
UTF-8
Java
false
false
2,689
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.netbeans.api.lsp; import java.util.concurrent.CompletableFuture; import javax.swing.text.BadLocationException; import javax.swing.text.DefaultStyledDocument; import javax.swing.text.Document; import org.netbeans.api.editor.mimelookup.MimePath; import org.netbeans.api.editor.mimelookup.test.MockMimeLookup; import org.netbeans.junit.NbTestCase; import org.netbeans.spi.lsp.HoverProvider; /** * * @author Dusan Balek */ public class HoverTest extends NbTestCase { public HoverTest(String name) { super(name); } @Override public void setUp () throws Exception { super.setUp(); clearWorkDir(); MockMimeLookup.setInstances (MimePath.get ("text/foo"), new FooHoverProvider()); } public void testHoverContent() { Document doc = createDocument("text/foo", ""); int offset = 0; // BEGIN: HoverTest#testHoverContent // Resolve a hover information at the given document offset... CompletableFuture<String> future = Hover.getContent(doc, offset); // ...and get its content String content = future.getNow(null); assertEquals("Foo hover information", content); // END: HoverTest#testHoverContent } private Document createDocument(String mimeType, String contents) { Document doc = new DefaultStyledDocument(); doc.putProperty("mimeType", mimeType); try { doc.insertString(0, contents, null); return doc; } catch (BadLocationException ble) { throw new IllegalStateException(ble); } } private static class FooHoverProvider implements HoverProvider { @Override public CompletableFuture<String> getHoverContent(Document doc, int offset) { return CompletableFuture.completedFuture("Foo hover information"); } } }
c0baaaf25ea515aa61fb45dda60f68777de0cb21
e24c791cacb49d81d2a53aaae6b2868978d22937
/src/main/java/link/snowcat/cubes/lights/DirectionalLightPool.java
06d601e2ed9dd488c1eea3ceac0800c584d6f637
[]
no_license
eanmclaughlin/3d-renderer
613f316cbb501f7d97ea3a2532e418504ce38f94
474c12ccee05672a5016f3815738da49f66af16f
refs/heads/master
2021-05-31T07:31:30.392658
2015-02-23T10:10:01
2015-02-23T10:10:01
30,803,943
1
0
null
null
null
null
UTF-8
Java
false
false
357
java
package link.snowcat.cubes.lights; /** * User: Pepper * Date: 5/4/13 * Time: 1:46 PM * Project: Cubes */ public class DirectionalLightPool extends LightPool{ public DirectionalLightPool(int size){ super(size); } @Override public int getPoolSizeInFloat() { return lights.size()*DirectionalLight.getSizeOf(); } }
23d41a6772f778a46698620296aa588601404efb
f6c6b1acb431f6839995715f9241f46cb3823c24
/src/main/java/aqoursoro/teleportcraft/recipes/machine/SinteringFurnaceRecipes.java
d2ebf4ea201bb4fab6c278ef5ec8bfc3628537cb
[ "Apache-2.0" ]
permissive
AqourSoro/TeleportCraft
42e1e98478c3232c84091559abcfda2c4135ccb9
cd550dca9aae07b416c4619f55c2827db1503403
refs/heads/master
2020-05-03T17:19:41.620151
2019-05-03T12:02:21
2019-05-03T12:02:21
178,742,022
1
0
null
null
null
null
UTF-8
Java
false
false
2,474
java
package aqoursoro.teleportcraft.recipes.machine; import java.util.Map; import java.util.Map.Entry; import com.google.common.collect.HashBasedTable; import com.google.common.collect.Maps; import com.google.common.collect.Table; import aqoursoro.teleportcraft.init.ModBlocks; import aqoursoro.teleportcraft.init.ModItems; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; public class SinteringFurnaceRecipes { private static final SinteringFurnaceRecipes INSTANCE = new SinteringFurnaceRecipes(); private final Table<ItemStack, ItemStack, ItemStack> smeltingList = HashBasedTable.<ItemStack, ItemStack, ItemStack>create(); private final Map<ItemStack, Float> experienceList = Maps.<ItemStack, Float>newHashMap(); public static SinteringFurnaceRecipes getInstance() { return INSTANCE; } private SinteringFurnaceRecipes() { addSinteringRecipe(new ItemStack(ModBlocks.MYTHINIUM_ORE), new ItemStack(ModBlocks.MYTHINIUM_ORE), new ItemStack(ModItems.MYTHINIUM_INGOT), 5.0F); } public void addSinteringRecipe(ItemStack input1, ItemStack input2, ItemStack result, float experience) { if(getSinteringResult(input1, input2) != ItemStack.EMPTY) return; this.smeltingList.put(input1, input2, result); this.experienceList.put(result, Float.valueOf(experience)); } public ItemStack getSinteringResult(ItemStack input1, ItemStack input2) { for(Entry<ItemStack, Map<ItemStack, ItemStack>> entry : this.smeltingList.columnMap().entrySet()) { if(this.compareItemStacks(input1, (ItemStack)entry.getKey())) { for(Entry<ItemStack, ItemStack> ent : entry.getValue().entrySet()) { if(this.compareItemStacks(input2, (ItemStack)ent.getKey())) { return (ItemStack)ent.getValue(); } } } } return ItemStack.EMPTY; } private boolean compareItemStacks(ItemStack stack1, ItemStack stack2) { return stack2.getItem() == stack1.getItem() && (stack2.getMetadata() == 32767 || stack2.getMetadata() == stack1.getMetadata()); } public Table<ItemStack, ItemStack, ItemStack> getDualSmeltingList() { return this.smeltingList; } public float getTestExperience(ItemStack stack) { for (Entry<ItemStack, Float> entry : this.experienceList.entrySet()) { if(this.compareItemStacks(stack, (ItemStack)entry.getKey())) { return ((Float)entry.getValue()).floatValue(); } } return 0.0F; } }
7d45f82f51c68387f0ec49275129f0add2845759
563ff6c013c2e0cd02369ed5405eee5e227b5a15
/src/main/java/br/com/api/vendas/repository/ClientesRepository.java
ef92b1a2cde2c58112602aef3be7c644a7aabe3d
[]
no_license
carolminadakis/API-Vendas
d122cbe142cb520d96bb257badd6420e10526ae8
cc15056900d64178c0ca231c0300a18374a2cd48
refs/heads/main
2023-03-15T15:23:09.713257
2021-03-02T15:36:18
2021-03-02T15:36:18
339,043,950
2
0
null
null
null
null
UTF-8
Java
false
false
712
java
package br.com.api.vendas.repository; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; import br.com.api.vendas.model.Cliente; @Repository public interface ClientesRepository extends JpaRepository<Cliente, Integer>{ List<Cliente> findByNome (String nome); //o exists vai fazer a pesquisa por nome e retornar um boolean boolean existsByNome (String nome); // @Query ("select c from Cliente c left join fetch c.pedido where c.id =:id") // Cliente findClienteFetchPedidos (@Param("id") Integer id); // }
3c691f15b0dc110088c95ca1bac4adf89a752dfd
00bfe82cc06143d8827559ffa079a66f60008d2f
/javaSourceLearn/src/source/org/omg/PortableServer/THREAD_POLICY_ID.java
c08e4fdcce60c802efcf927869a1b8ab841af528
[]
no_license
Zhangeaky/JAVASE
de7680058b491cb25e70284f237364dc67ca4927
2e97e3dbb9019f89356e9386545509726bf16324
refs/heads/master
2023-04-12T02:58:36.605425
2021-05-21T12:36:05
2021-05-21T12:36:05
335,182,265
0
0
null
null
null
null
UTF-8
Java
false
false
472
java
package org.omg.PortableServer; /** * org/omg/PortableServer/THREAD_POLICY_ID.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from /scratch/jenkins/workspace/8-2-build-linux-amd64/jdk8u281/880/corba/src/share/classes/org/omg/PortableServer/poa.idl * Wednesday, December 9, 2020 12:38:46 PM GMT */ public interface THREAD_POLICY_ID { /** * The value representing THREAD_POLICY_ID. */ public static final int value = (int)(16L); }
de44468c4244e500c017ecb1b46e35fe8067c102
3b5b4356751fbdbdbc794318afe00327377a0c68
/src/tasks/quest1javasyntax/level5/task0504/Solution.java
47f29ae8fec5ced761630d872b723322b93bbfe5
[ "MIT" ]
permissive
LSVDnepr/JavaRush
b48304052917bed9bc6df84bceba9fa9680dd0ce
14205d8db66202a403da447d04a24e77f3d169e6
refs/heads/master
2021-04-15T12:32:02.700234
2018-03-27T12:57:11
2018-03-27T12:57:11
126,696,658
0
0
null
null
null
null
UTF-8
Java
false
false
1,513
java
package tasks.quest1javasyntax.level5.task0504; /* Задача: Трикотаж Пару задач назад студенты секретного центра JavaRush создавали класс Cat. Теперь пришла пора реализовать котов во плоти, разумеется по образу и подобию класса Cat, а точнее - основываясь на нём, как на шаблоне. Их - котов - должно быть трое. Наполните этих троих жизнью, то есть, конкретными данными. Требования: 1. Программа не должна считывать данные с клавиатуры. 2. Нужно создать три объекта типа Cat. 3. Класс Cat нельзя изменять. 4. Программа не должна выводить данные на экран. */ public class Solution { public static void main(String[] args) { Cat cat1=new Cat("Tom",5,7,10); Cat cat2=new Cat("Black",3,5,8); Cat cat3=new Cat("Bars",4,6,9); } public static class Cat { private String name; private int age; private int weight; private int strength; public Cat(String name, int age, int weight, int strength) { this.name = name; this.age = age; this.weight = weight; this.strength = strength; } } }
8fe9b04e62cf2e42b52caa885039feefe00a2f67
1b65ffa946fc7edfa9bbb63e467001bb60dd11b2
/app/src/main/java/com/varshaaweblabs/ecommerce/ProductFullDetails/Model/ProductFull_RecommedndedProduct.java
1f7db1df087bbc37d0898023173119f528128c46
[]
no_license
Mohsin92/ProjectPlay
5f84225b4f0ea5e3cd9f1bba540c57ea935487c9
aec29c8ecc35aa148b9edaebc25e59fa575f4159
refs/heads/master
2021-05-07T14:53:02.253662
2017-11-08T09:04:41
2017-11-08T09:04:41
109,951,922
1
0
null
null
null
null
UTF-8
Java
false
false
209
java
package com.varshaaweblabs.ecommerce.ProductFullDetails.Model; import java.io.Serializable; /** * Created by dinesh on 3/10/17. */ public class ProductFull_RecommedndedProduct implements Serializable { }
f35bbbbfb6804993ebc02581ee6287e182a20e03
b63df6bf0384872df84970800abff2b979ec8053
/HibernateEhCache/src/main/java/com/annotation/Message.java
360914e2be637402e3d2564dadf937e36b822775
[]
no_license
gitrepo7777/HibernateExamples
22a8abfa2f36e6c0d73325697e1e43f59f2d9703
6bdb261a42f07c39c126f8640324ea82283ca3ac
refs/heads/master
2021-01-10T21:32:55.704613
2014-06-06T21:47:31
2014-06-06T21:47:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
886
java
package com.annotation; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; @Entity @Table(name="MESSAGES", schema="vani") @Cache(region = "messages", usage = CacheConcurrencyStrategy.READ_WRITE) public class Message { Message(){ } Message(String message){ message_text=message; } @Id @GeneratedValue @Column(name="MESSAGE_ID") public Long id; @Column(name="MESSAGE_TEXT") public String message_text; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getMessage_text() { return message_text; } public void setMessage_text(String message_text) { this.message_text = message_text; } }
c26e0e788bd4cc230ad38faa41528075ab765604
3e5b1efd3d28e09efa958db5a80f7d8a0dfeb619
/app/src/main/java/com/omeram/birthday/ui/BirthdayFragment.java
142d2194d062203e192db7a8c3a5fd1456d367c6
[]
no_license
omeramiel/BirthdayApp
e6e7aa1753f95e5fb796db36c0986e335b28c5c6
5290891e113e2d278b1165da21013db94227017e
refs/heads/master
2020-04-07T16:49:53.470165
2018-11-22T17:06:46
2018-11-22T17:06:46
158,544,779
0
0
null
null
null
null
UTF-8
Java
false
false
3,017
java
package com.omeram.birthday.ui; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.omeram.birthday.R; import com.omeram.birthday.model.Birthday; import com.omeram.birthday.viewmodel.BirthdayViewModel; import com.omeram.birthday.vo.AgeView; import com.omeram.birthday.vo.ScreenView; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.widget.Toolbar; import androidx.fragment.app.Fragment; import androidx.lifecycle.ViewModelProviders; import butterknife.BindView; import butterknife.ButterKnife; /** * A fragment representing the birthday */ public class BirthdayFragment extends Fragment { @BindView(R.id.toolbar) Toolbar toolbar; @BindView(R.id.background) ImageView background; @BindView(R.id.picture) ImageView picture; @BindView(R.id.nameText) TextView nameText; @BindView(R.id.ageText) TextView ageText; @BindView(R.id.ageImage) ImageView ageImage; private BirthdayViewModel birthdayViewModel; /** * Mandatory empty constructor for the fragment manager to instantiate the * fragment (e.g. upon screen orientation changes). */ public BirthdayFragment() { } public static BirthdayFragment newInstance() { return new BirthdayFragment(); } @Override public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.birthday_fragment, container, false); ButterKnife.bind(this, view); ((MainActivity)getActivity()).setCloseIcon(toolbar); randomizeScreen(); return view; } private void randomizeScreen() { ScreenView screenView = ViewUtils.getRandomScreen(); background.setImageResource(screenView.getBackground()); picture.setImageResource(screenView.getDefaultPicture()); } @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); birthdayViewModel = ViewModelProviders.of(getActivity()).get(BirthdayViewModel.class); birthdayViewModel.loadRecentBirthday().observe(this, this::updateUi); } private void updateUi(Birthday birthday) { if (birthday != null) { AgeView ageView = ViewUtils.convertDateToView(birthday.getDate()); if (ageView != null && ageView.getAgeCount() != null) { ageText.setText(getString((R.string.baby_age), getString(ageView.getAgePeriod()))); ageImage.setImageResource(ageView.getAgeCount().getResource()); } nameText.setText(getString((R.string.baby_name), birthday.getName())); if (birthday.getPictureUri() != null) { picture.setImageURI(birthday.getPictureUri()); } } } }
ccedf08c46fa67b54dfb7b2b459124cad218ae97
ee28ee7f47b0ae155213e7bb3b1e065a319df7a6
/mall-api/src/main/java/com/sxt/mall/oms/service/OrderOperateHistoryService.java
d38ac517d34d5ef1fb50f779af86a024e40d2b16
[]
no_license
xiangbameidexiangaoji/gmall
2aeb373c0108525b30a0ac0c1692d91bcfae3eb3
03e8de33b32a05488eb8839b13288204e89fc61f
refs/heads/master
2022-06-23T03:17:07.672487
2021-10-31T15:16:36
2021-10-31T15:16:36
226,511,124
0
1
null
2022-06-21T02:36:34
2019-12-07T12:41:54
Java
UTF-8
Java
false
false
335
java
package com.sxt.mall.oms.service; import com.sxt.mall.oms.entity.OrderOperateHistory; import com.baomidou.mybatisplus.extension.service.IService; /** * <p> * 订单操作历史记录 服务类 * </p> * * @author Lfy * @since 2019-05-08 */ public interface OrderOperateHistoryService extends IService<OrderOperateHistory> { }
30f530f23ecb25216b7a2cea479ad1b4d0e35ab2
cb6c49c407e4b8582eb60fd5807c74412fe716f9
/Commons/src/main/java/eu/neclab/ngsildbroker/commons/datatypes/Information.java
cb93ce19a644e97fa732a38472d4dd0dea7cc429
[ "BSD-3-Clause", "BSD-4-Clause" ]
permissive
jlanzarotti/ScorpioBroker
0fd673fb932e3771c631fb0c98adb2f21e9ed062
8c436258befd2a857cd85165169c1afec8066bdb
refs/heads/development
2023-08-04T07:23:56.181933
2021-08-23T15:38:15
2021-08-23T15:38:15
401,205,990
0
0
BSD-3-Clause
2021-08-31T01:01:45
2021-08-30T03:35:17
null
UTF-8
Java
false
false
2,104
java
package eu.neclab.ngsildbroker.commons.datatypes; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; public class Information { private List<EntityInfo> entities; private Set<String> properties; private Set<String> relationships; public Information() { this.entities=new ArrayList<EntityInfo>(); this.properties=new HashSet<String>(); this.relationships=new HashSet<String>(); } public List<EntityInfo> getEntities() { return entities; } public void setEntities(List<EntityInfo> entities) { this.entities = entities; } public Set<String> getProperties() { return properties; } public void setProperties(Set<String> properties) { this.properties = properties; } public Set<String> getRelationships() { return relationships; } public void setRelationships(Set<String> relationships) { this.relationships = relationships; } @Override public String toString() { return "Information [entities=" + entities + ", properties=" + properties + ", relationships=" + relationships + "]"; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((entities == null) ? 0 : entities.hashCode()); result = prime * result + ((properties == null) ? 0 : properties.hashCode()); result = prime * result + ((relationships == null) ? 0 : relationships.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Information other = (Information) obj; if (entities == null) { if (other.entities != null) return false; } else if (!entities.equals(other.entities)) return false; if (properties == null) { if (other.properties != null) return false; } else if (!properties.equals(other.properties)) return false; if (relationships == null) { if (other.relationships != null) return false; } else if (!relationships.equals(other.relationships)) return false; return true; } }
369b17e47e365b391482dd8d72773d6c000350e8
12ad1959a5c375b79888f7b68d3aeefb6acdb6f6
/src/by/it/group573601/Tkachev/lesson09/C_Stairs.java
49a7d5d4ce3423c9e9102f7741c6126096a9fe6b
[]
no_license
artsioml/RPPZL2017-09-02
12484794c55aa2e9895e50112dcf22b07a7bc90e
d7bf6225db031b46796cbfd1ab689d8d6c0a4e92
refs/heads/master
2021-05-13T17:01:26.927077
2018-01-09T12:00:42
2018-01-09T12:00:42
107,284,078
0
0
null
2017-10-17T14:59:04
2017-10-17T14:59:02
null
UTF-8
Java
false
false
2,216
java
package by.it.group573601.Tkachev.lesson09; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import java.util.Scanner; /* Даны число 1<=n<=100 ступенек лестницы и целые числа −10000<=a[1],…,a[n]<=10000, которыми помечены ступеньки. Найдите максимальную сумму, которую можно получить, идя по лестнице снизу вверх (от нулевой до n-й ступеньки), каждый раз поднимаясь на одну или на две ступеньки. Sample Input 1: 2 1 2 Sample Output 1: 3 Sample Input 2: 2 2 -1 Sample Output 2: 1 Sample Input 3: 3 -1 2 1 Sample Output 3: 3 */ public class C_Stairs { private int[] stairs; int getMaxSum(InputStream stream ) { Scanner scanner = new Scanner(stream); int n = scanner.nextInt(); stairs = new int[n]; for (int i = 0; i < n; i++) { stairs[i] = scanner.nextInt(); } //!!!!!!!!!!!!!!!!!!!!!!!!! НАЧАЛО ЗАДАЧИ !!!!!!!!!!!!!!!!!!!!!!!!! //!!!!!!!!!!!!!!!!!!!!!!!!! КОНЕЦ ЗАДАЧИ !!!!!!!!!!!!!!!!!!!!!!!!! return currentSum(n - 1, 0); } private int currentSum(int step, int sum){ if (step == 1){ int mono_hop = currentSum(step - 1, sum + stairs[step]); int double_hop = sum + stairs[step]; return Math.max(mono_hop, double_hop); } else if (step == 0){ return sum + stairs[step]; } else { int mono_hop = currentSum(step - 1, sum + stairs[step]); int double_hop = currentSum(step - 2, sum + stairs[step]); return Math.max(mono_hop, double_hop); } } public static void main(String[] args) throws FileNotFoundException { String root = System.getProperty("user.dir") + "/src/"; InputStream stream = new FileInputStream(root + "by/it/a_khmelev/lesson09/dataC.txt"); C_Stairs instance = new C_Stairs(); int res=instance.getMaxSum(stream); System.out.println(res); } }
aa66aa875a78a44e98d3517558d330df901368e3
65db6e5babef86d8573b4dc36a14dfb5f439d550
/src/main/java/project/FizzBuzzQix.java
b2bff41d9542d5f82bda9584a92f1ec5a1f646b9
[]
no_license
bdahal17/FizzBuzzQix
13b2c6eaea319637de989a2c9cea9ddaae383316
18886824d95083dec600e2a1a81b037ede46990e
refs/heads/main
2023-03-23T01:40:53.021056
2021-03-17T02:32:55
2021-03-17T02:32:55
348,535,828
0
0
null
null
null
null
UTF-8
Java
false
false
816
java
package project; public class FizzBuzzQix { public String interpret(int numberToInterpret) { String output = ""; if (isFizzNumber(numberToInterpret)) { output += "Fizz"; } if (isBuzzNumber(numberToInterpret)) { output += "Buzz"; } if (isQixNumber(numberToInterpret)) { output += "Qix"; } if (output.isEmpty()) { output += numberToInterpret; } return output; } public boolean isFizzNumber(int numberToInterpret) { return numberToInterpret % 3 == 0; } public boolean isBuzzNumber(int numberToInterpret) { return numberToInterpret % 5 == 0; } public boolean isQixNumber(int numberToInterpret) { return numberToInterpret % 7 == 0; } }
d0cd5236ee3075daad4964790a08718e6e35042d
7cf0f3983be3f98300128ee9aa927d4ef530eca6
/src/main/java/br/com/swconsultoria/cte/schema_400/cteModalRodoviarioOS/TCTe.java
13c1db054694f542b84937f413746f277bdee9a9
[ "MIT" ]
permissive
Samuel-Oliveira/Java_CTe
9394ed7692c9f504aa891265831da29f2e643735
51e95b15a94d0796457f1a0620f37b167096bb76
refs/heads/master
2023-09-04T12:35:59.598280
2023-08-29T20:28:00
2023-08-29T20:28:00
82,298,784
64
42
MIT
2023-08-29T20:24:14
2017-02-17T13:13:34
Java
UTF-8
Java
false
false
608,236
java
package br.com.swconsultoria.cte.schema_400.cteModalRodoviarioOS; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAnyElement; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlID; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.w3c.dom.Element; /** * Tipo Conhecimento de Transporte Eletrônico (Modelo 57) * * <p>Classe Java de TCTe complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType name="TCTe"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="infCte"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="ide"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="cUF" type="{http://www.portalfiscal.inf.br/cte}TCodUfIBGE"/> * &lt;element name="cCT"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;pattern value="[0-9]{8}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="CFOP" type="{http://www.portalfiscal.inf.br/cte}TCfop"/> * &lt;element name="natOp"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="mod" type="{http://www.portalfiscal.inf.br/cte}TModCT"/> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TSerie"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nCT" type="{http://www.portalfiscal.inf.br/cte}TNF"/> * &lt;element name="dhEmi"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TDateTimeUTC"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpImp"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpEmis"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="3"/> * &lt;enumeration value="4"/> * &lt;enumeration value="5"/> * &lt;enumeration value="7"/> * &lt;enumeration value="8"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cDV"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;pattern value="[0-9]{1}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpAmb" type="{http://www.portalfiscal.inf.br/cte}TAmb"/> * &lt;element name="tpCTe" type="{http://www.portalfiscal.inf.br/cte}TFinCTe"/> * &lt;element name="procEmi" type="{http://www.portalfiscal.inf.br/cte}TProcEmi"/> * &lt;element name="verProc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="indGlobalizado" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;enumeration value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cMunEnv" type="{http://www.portalfiscal.inf.br/cte}TCodMunIBGE"/> * &lt;element name="xMunEnv"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="UFEnv" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;element name="modal" type="{http://www.portalfiscal.inf.br/cte}TModTransp"/> * &lt;element name="tpServ"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cMunIni" type="{http://www.portalfiscal.inf.br/cte}TCodMunIBGE"/> * &lt;element name="xMunIni"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="UFIni" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;element name="cMunFim" type="{http://www.portalfiscal.inf.br/cte}TCodMunIBGE"/> * &lt;element name="xMunFim"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="UFFim" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;element name="retira"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;enumeration value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xDetRetira" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="160"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="indIEToma"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="9"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;choice> * &lt;element name="toma3"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="toma"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="toma4"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="toma"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;sequence> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xFant" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="enderToma" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" type="{http://www.portalfiscal.inf.br/cte}TEmail" minOccurs="0"/> * &lt;/sequence> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;sequence minOccurs="0"> * &lt;element name="dhCont" type="{http://www.portalfiscal.inf.br/cte}TDateTimeUTC"/> * &lt;element name="xJust"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="15"/> * &lt;maxLength value="256"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="compl" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xCaracAd" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="15"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xCaracSer" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xEmi" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fluxo" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xOrig" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="pass" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xPass" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="15"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="xDest" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xRota" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="10"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="Entrega" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="semData"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="comData"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dProg" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="noPeriodo"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dIni" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;element name="dFim" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;choice> * &lt;element name="semHora"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="comHora"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="hProg" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="noInter"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="hIni" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;element name="hFim" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="origCalc" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="40"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="destCalc" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="40"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xObs" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="2000"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="ObsCont" maxOccurs="10" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xTexto"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="160"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;attribute name="xCampo" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="ObsFisco" maxOccurs="10" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xTexto"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;attribute name="xCampo" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="emit"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpj"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIe"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="IEST" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIe"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xFant" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="enderEmit" type="{http://www.portalfiscal.inf.br/cte}TEndeEmi"/> * &lt;element name="CRT" type="{http://www.portalfiscal.inf.br/cte}TCRT"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="rem" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xFant" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="enderReme" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TEmail"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="exped" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="enderExped" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" type="{http://www.portalfiscal.inf.br/cte}TEmail" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="receb" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="enderReceb" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" type="{http://www.portalfiscal.inf.br/cte}TEmail" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="dest" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="ISUF" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;pattern value="[0-9]{8,9}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="enderDest" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" type="{http://www.portalfiscal.inf.br/cte}TEmail" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="vPrest"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="vTPrest" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vRec" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="Comp" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="15"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="vComp" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="imp"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="ICMS" type="{http://www.portalfiscal.inf.br/cte}TImp"/> * &lt;element name="vTotTrib" type="{http://www.portalfiscal.inf.br/cte}TDec_1302" minOccurs="0"/> * &lt;element name="infAdFisco" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="2000"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="ICMSUFFim" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="vBCUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="pFCPUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_0302"/> * &lt;element name="pICMSUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_0302"/> * &lt;element name="pICMSInter" type="{http://www.portalfiscal.inf.br/cte}TDec_0302"/> * &lt;element name="vFCPUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vICMSUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vICMSUFIni" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;choice> * &lt;element name="infCTeNorm"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="infCarga"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="vCarga" type="{http://www.portalfiscal.inf.br/cte}TDec_1302" minOccurs="0"/> * &lt;element name="proPred"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xOutCat" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="infQ" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="cUnid"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="00"/> * &lt;enumeration value="01"/> * &lt;enumeration value="02"/> * &lt;enumeration value="03"/> * &lt;enumeration value="04"/> * &lt;enumeration value="05"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpMed"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="qCarga" type="{http://www.portalfiscal.inf.br/cte}TDec_1104"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="vCargaAverb" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infDoc" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="infNF" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nRoma" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nPed" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="mod" type="{http://www.portalfiscal.inf.br/cte}TModNF"/> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;element name="vBC" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vICMS" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vBCST" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vST" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vProd" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vNF" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="nCFOP" type="{http://www.portalfiscal.inf.br/cte}TCfop"/> * &lt;element name="nPeso" type="{http://www.portalfiscal.inf.br/cte}TDec_1203Opc" minOccurs="0"/> * &lt;element name="PIN" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;minLength value="2"/> * &lt;maxLength value="9"/> * &lt;pattern value="[1-9]{1}[0-9]{1,8}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infNFe" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chave" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;element name="PIN" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;minLength value="2"/> * &lt;maxLength value="9"/> * &lt;pattern value="[1-9]{1}[0-9]{1,8}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infOutros" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="00"/> * &lt;enumeration value="10"/> * &lt;enumeration value="59"/> * &lt;enumeration value="65"/> * &lt;enumeration value="99"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="descOutros" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="100"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;element name="vDocFisc" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="docAnt" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="emiDocAnt" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;sequence minOccurs="0"> * &lt;element name="IE" type="{http://www.portalfiscal.inf.br/cte}TIe"/> * &lt;element name="UF" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;/sequence> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="idDocAnt" maxOccurs="2"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;choice> * &lt;element name="idDocAntPap" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TDocAssoc"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="subser" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="idDocAntEle" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTe" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infModal"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;any processContents='skip'/> * &lt;/sequence> * &lt;attribute name="versaoModal" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;pattern value="4\.(0[0-9]|[1-9][0-9])"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="veicNovos" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chassi"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;length value="17"/> * &lt;pattern value="[A-Z0-9]+"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cCor"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xCor"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="40"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cMod"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="6"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="vUnit" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vFrete" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="cobr" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="fat" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nFat" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="vOrig" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="vDesc" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="vLiq" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="dup" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nDup" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dVenc" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;element name="vDup" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infCteSub" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCte"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;pattern value="[0-9]{44}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="indAlteraToma" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;enumeration value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infGlobalizado" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xObs"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="15"/> * &lt;maxLength value="256"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infServVinc" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="infCTeMultimodal" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTeMultimodal" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infCteComp" maxOccurs="10"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTe" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;element name="autXML" maxOccurs="10" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpj"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infRespTec" type="{http://www.portalfiscal.inf.br/cte}TRespTec" minOccurs="0"/> * &lt;element name="infSolicNFF" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xSolic"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="2000"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infPAA" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="CNPJPAA" type="{http://www.portalfiscal.inf.br/cte}TCnpj"/> * &lt;element name="PAASignature"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="SignatureValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> * &lt;element name="RSAKeyValue" type="{http://www.portalfiscal.inf.br/cte}TRSAKeyValueType"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;attribute name="versao" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TVerCTe"> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;attribute name="Id" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}ID"> * &lt;pattern value="CTe[0-9]{44}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infCTeSupl" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="qrCodCTe"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;minLength value="50"/> * &lt;maxLength value="1000"/> * &lt;pattern value="((HTTPS?|https?)://.*\?chCTe=[0-9]{44}&amp;tpAmb=[1-2](&amp;sign=[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1})?)"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TCTe", namespace = "http://www.portalfiscal.inf.br/cte", propOrder = { "infCte", "infCTeSupl", "signature" }) public class TCTe { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TCTe.InfCte infCte; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCTeSupl infCTeSupl; @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) protected SignatureType signature; /** * Obtém o valor da propriedade infCte. * * @return * possible object is * {@link TCTe.InfCte } * */ public TCTe.InfCte getInfCte() { return infCte; } /** * Define o valor da propriedade infCte. * * @param value * allowed object is * {@link TCTe.InfCte } * */ public void setInfCte(TCTe.InfCte value) { this.infCte = value; } /** * Obtém o valor da propriedade infCTeSupl. * * @return * possible object is * {@link TCTe.InfCTeSupl } * */ public TCTe.InfCTeSupl getInfCTeSupl() { return infCTeSupl; } /** * Define o valor da propriedade infCTeSupl. * * @param value * allowed object is * {@link TCTe.InfCTeSupl } * */ public void setInfCTeSupl(TCTe.InfCTeSupl value) { this.infCTeSupl = value; } /** * Obtém o valor da propriedade signature. * * @return * possible object is * {@link SignatureType } * */ public SignatureType getSignature() { return signature; } /** * Define o valor da propriedade signature. * * @param value * allowed object is * {@link SignatureType } * */ public void setSignature(SignatureType value) { this.signature = value; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="qrCodCTe"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;minLength value="50"/> * &lt;maxLength value="1000"/> * &lt;pattern value="((HTTPS?|https?)://.*\?chCTe=[0-9]{44}&amp;tpAmb=[1-2](&amp;sign=[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1})?)"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "qrCodCTe" }) public static class InfCTeSupl { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String qrCodCTe; /** * Obtém o valor da propriedade qrCodCTe. * * @return * possible object is * {@link String } * */ public String getQrCodCTe() { return qrCodCTe; } /** * Define o valor da propriedade qrCodCTe. * * @param value * allowed object is * {@link String } * */ public void setQrCodCTe(String value) { this.qrCodCTe = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="ide"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="cUF" type="{http://www.portalfiscal.inf.br/cte}TCodUfIBGE"/> * &lt;element name="cCT"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;pattern value="[0-9]{8}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="CFOP" type="{http://www.portalfiscal.inf.br/cte}TCfop"/> * &lt;element name="natOp"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="mod" type="{http://www.portalfiscal.inf.br/cte}TModCT"/> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TSerie"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nCT" type="{http://www.portalfiscal.inf.br/cte}TNF"/> * &lt;element name="dhEmi"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TDateTimeUTC"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpImp"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpEmis"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="3"/> * &lt;enumeration value="4"/> * &lt;enumeration value="5"/> * &lt;enumeration value="7"/> * &lt;enumeration value="8"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cDV"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;pattern value="[0-9]{1}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpAmb" type="{http://www.portalfiscal.inf.br/cte}TAmb"/> * &lt;element name="tpCTe" type="{http://www.portalfiscal.inf.br/cte}TFinCTe"/> * &lt;element name="procEmi" type="{http://www.portalfiscal.inf.br/cte}TProcEmi"/> * &lt;element name="verProc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="indGlobalizado" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;enumeration value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cMunEnv" type="{http://www.portalfiscal.inf.br/cte}TCodMunIBGE"/> * &lt;element name="xMunEnv"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="UFEnv" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;element name="modal" type="{http://www.portalfiscal.inf.br/cte}TModTransp"/> * &lt;element name="tpServ"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cMunIni" type="{http://www.portalfiscal.inf.br/cte}TCodMunIBGE"/> * &lt;element name="xMunIni"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="UFIni" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;element name="cMunFim" type="{http://www.portalfiscal.inf.br/cte}TCodMunIBGE"/> * &lt;element name="xMunFim"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="UFFim" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;element name="retira"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;enumeration value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xDetRetira" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="160"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="indIEToma"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="9"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;choice> * &lt;element name="toma3"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="toma"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="toma4"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="toma"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;sequence> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xFant" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="enderToma" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" type="{http://www.portalfiscal.inf.br/cte}TEmail" minOccurs="0"/> * &lt;/sequence> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;sequence minOccurs="0"> * &lt;element name="dhCont" type="{http://www.portalfiscal.inf.br/cte}TDateTimeUTC"/> * &lt;element name="xJust"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="15"/> * &lt;maxLength value="256"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="compl" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xCaracAd" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="15"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xCaracSer" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xEmi" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fluxo" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xOrig" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="pass" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xPass" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="15"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="xDest" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xRota" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="10"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="Entrega" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="semData"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="comData"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dProg" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="noPeriodo"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dIni" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;element name="dFim" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;choice> * &lt;element name="semHora"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="comHora"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="hProg" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="noInter"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="hIni" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;element name="hFim" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="origCalc" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="40"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="destCalc" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="40"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xObs" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="2000"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="ObsCont" maxOccurs="10" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xTexto"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="160"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;attribute name="xCampo" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="ObsFisco" maxOccurs="10" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xTexto"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;attribute name="xCampo" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="emit"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpj"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIe"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="IEST" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIe"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xFant" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="enderEmit" type="{http://www.portalfiscal.inf.br/cte}TEndeEmi"/> * &lt;element name="CRT" type="{http://www.portalfiscal.inf.br/cte}TCRT"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="rem" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xFant" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="enderReme" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TEmail"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="exped" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="enderExped" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" type="{http://www.portalfiscal.inf.br/cte}TEmail" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="receb" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="enderReceb" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" type="{http://www.portalfiscal.inf.br/cte}TEmail" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="dest" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="ISUF" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;pattern value="[0-9]{8,9}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="enderDest" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" type="{http://www.portalfiscal.inf.br/cte}TEmail" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="vPrest"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="vTPrest" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vRec" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="Comp" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="15"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="vComp" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="imp"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="ICMS" type="{http://www.portalfiscal.inf.br/cte}TImp"/> * &lt;element name="vTotTrib" type="{http://www.portalfiscal.inf.br/cte}TDec_1302" minOccurs="0"/> * &lt;element name="infAdFisco" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="2000"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="ICMSUFFim" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="vBCUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="pFCPUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_0302"/> * &lt;element name="pICMSUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_0302"/> * &lt;element name="pICMSInter" type="{http://www.portalfiscal.inf.br/cte}TDec_0302"/> * &lt;element name="vFCPUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vICMSUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vICMSUFIni" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;choice> * &lt;element name="infCTeNorm"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="infCarga"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="vCarga" type="{http://www.portalfiscal.inf.br/cte}TDec_1302" minOccurs="0"/> * &lt;element name="proPred"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xOutCat" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="infQ" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="cUnid"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="00"/> * &lt;enumeration value="01"/> * &lt;enumeration value="02"/> * &lt;enumeration value="03"/> * &lt;enumeration value="04"/> * &lt;enumeration value="05"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpMed"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="qCarga" type="{http://www.portalfiscal.inf.br/cte}TDec_1104"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="vCargaAverb" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infDoc" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="infNF" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nRoma" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nPed" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="mod" type="{http://www.portalfiscal.inf.br/cte}TModNF"/> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;element name="vBC" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vICMS" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vBCST" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vST" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vProd" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vNF" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="nCFOP" type="{http://www.portalfiscal.inf.br/cte}TCfop"/> * &lt;element name="nPeso" type="{http://www.portalfiscal.inf.br/cte}TDec_1203Opc" minOccurs="0"/> * &lt;element name="PIN" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;minLength value="2"/> * &lt;maxLength value="9"/> * &lt;pattern value="[1-9]{1}[0-9]{1,8}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infNFe" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chave" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;element name="PIN" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;minLength value="2"/> * &lt;maxLength value="9"/> * &lt;pattern value="[1-9]{1}[0-9]{1,8}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infOutros" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="00"/> * &lt;enumeration value="10"/> * &lt;enumeration value="59"/> * &lt;enumeration value="65"/> * &lt;enumeration value="99"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="descOutros" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="100"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;element name="vDocFisc" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="docAnt" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="emiDocAnt" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;sequence minOccurs="0"> * &lt;element name="IE" type="{http://www.portalfiscal.inf.br/cte}TIe"/> * &lt;element name="UF" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;/sequence> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="idDocAnt" maxOccurs="2"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;choice> * &lt;element name="idDocAntPap" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TDocAssoc"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="subser" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="idDocAntEle" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTe" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infModal"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;any processContents='skip'/> * &lt;/sequence> * &lt;attribute name="versaoModal" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;pattern value="4\.(0[0-9]|[1-9][0-9])"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="veicNovos" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chassi"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;length value="17"/> * &lt;pattern value="[A-Z0-9]+"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cCor"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xCor"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="40"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cMod"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="6"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="vUnit" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vFrete" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="cobr" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="fat" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nFat" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="vOrig" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="vDesc" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="vLiq" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="dup" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nDup" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dVenc" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;element name="vDup" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infCteSub" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCte"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;pattern value="[0-9]{44}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="indAlteraToma" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;enumeration value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infGlobalizado" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xObs"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="15"/> * &lt;maxLength value="256"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infServVinc" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="infCTeMultimodal" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTeMultimodal" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infCteComp" maxOccurs="10"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTe" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;element name="autXML" maxOccurs="10" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpj"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infRespTec" type="{http://www.portalfiscal.inf.br/cte}TRespTec" minOccurs="0"/> * &lt;element name="infSolicNFF" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xSolic"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="2000"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infPAA" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="CNPJPAA" type="{http://www.portalfiscal.inf.br/cte}TCnpj"/> * &lt;element name="PAASignature"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="SignatureValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> * &lt;element name="RSAKeyValue" type="{http://www.portalfiscal.inf.br/cte}TRSAKeyValueType"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;attribute name="versao" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TVerCTe"> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;attribute name="Id" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}ID"> * &lt;pattern value="CTe[0-9]{44}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "ide", "compl", "emit", "rem", "exped", "receb", "dest", "vPrest", "imp", "infCTeNorm", "infCteComp", "autXML", "infRespTec", "infSolicNFF", "infPAA" }) public static class InfCte { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TCTe.InfCte.Ide ide; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Compl compl; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TCTe.InfCte.Emit emit; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Rem rem; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Exped exped; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Receb receb; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Dest dest; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TCTe.InfCte.VPrest vPrest; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TCTe.InfCte.Imp imp; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.InfCTeNorm infCTeNorm; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TCTe.InfCte.InfCteComp> infCteComp; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TCTe.InfCte.AutXML> autXML; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TRespTec infRespTec; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.InfSolicNFF infSolicNFF; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.InfPAA infPAA; @XmlAttribute(name = "versao", required = true) protected String versao; @XmlAttribute(name = "Id", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID protected String id; /** * Obtém o valor da propriedade ide. * * @return * possible object is * {@link TCTe.InfCte.Ide } * */ public TCTe.InfCte.Ide getIde() { return ide; } /** * Define o valor da propriedade ide. * * @param value * allowed object is * {@link TCTe.InfCte.Ide } * */ public void setIde(TCTe.InfCte.Ide value) { this.ide = value; } /** * Obtém o valor da propriedade compl. * * @return * possible object is * {@link TCTe.InfCte.Compl } * */ public TCTe.InfCte.Compl getCompl() { return compl; } /** * Define o valor da propriedade compl. * * @param value * allowed object is * {@link TCTe.InfCte.Compl } * */ public void setCompl(TCTe.InfCte.Compl value) { this.compl = value; } /** * Obtém o valor da propriedade emit. * * @return * possible object is * {@link TCTe.InfCte.Emit } * */ public TCTe.InfCte.Emit getEmit() { return emit; } /** * Define o valor da propriedade emit. * * @param value * allowed object is * {@link TCTe.InfCte.Emit } * */ public void setEmit(TCTe.InfCte.Emit value) { this.emit = value; } /** * Obtém o valor da propriedade rem. * * @return * possible object is * {@link TCTe.InfCte.Rem } * */ public TCTe.InfCte.Rem getRem() { return rem; } /** * Define o valor da propriedade rem. * * @param value * allowed object is * {@link TCTe.InfCte.Rem } * */ public void setRem(TCTe.InfCte.Rem value) { this.rem = value; } /** * Obtém o valor da propriedade exped. * * @return * possible object is * {@link TCTe.InfCte.Exped } * */ public TCTe.InfCte.Exped getExped() { return exped; } /** * Define o valor da propriedade exped. * * @param value * allowed object is * {@link TCTe.InfCte.Exped } * */ public void setExped(TCTe.InfCte.Exped value) { this.exped = value; } /** * Obtém o valor da propriedade receb. * * @return * possible object is * {@link TCTe.InfCte.Receb } * */ public TCTe.InfCte.Receb getReceb() { return receb; } /** * Define o valor da propriedade receb. * * @param value * allowed object is * {@link TCTe.InfCte.Receb } * */ public void setReceb(TCTe.InfCte.Receb value) { this.receb = value; } /** * Obtém o valor da propriedade dest. * * @return * possible object is * {@link TCTe.InfCte.Dest } * */ public TCTe.InfCte.Dest getDest() { return dest; } /** * Define o valor da propriedade dest. * * @param value * allowed object is * {@link TCTe.InfCte.Dest } * */ public void setDest(TCTe.InfCte.Dest value) { this.dest = value; } /** * Obtém o valor da propriedade vPrest. * * @return * possible object is * {@link TCTe.InfCte.VPrest } * */ public TCTe.InfCte.VPrest getVPrest() { return vPrest; } /** * Define o valor da propriedade vPrest. * * @param value * allowed object is * {@link TCTe.InfCte.VPrest } * */ public void setVPrest(TCTe.InfCte.VPrest value) { this.vPrest = value; } /** * Obtém o valor da propriedade imp. * * @return * possible object is * {@link TCTe.InfCte.Imp } * */ public TCTe.InfCte.Imp getImp() { return imp; } /** * Define o valor da propriedade imp. * * @param value * allowed object is * {@link TCTe.InfCte.Imp } * */ public void setImp(TCTe.InfCte.Imp value) { this.imp = value; } /** * Obtém o valor da propriedade infCTeNorm. * * @return * possible object is * {@link TCTe.InfCte.InfCTeNorm } * */ public TCTe.InfCte.InfCTeNorm getInfCTeNorm() { return infCTeNorm; } /** * Define o valor da propriedade infCTeNorm. * * @param value * allowed object is * {@link TCTe.InfCte.InfCTeNorm } * */ public void setInfCTeNorm(TCTe.InfCte.InfCTeNorm value) { this.infCTeNorm = value; } /** * Gets the value of the infCteComp property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the infCteComp property. * * <p> * For example, to add a new item, do as follows: * <pre> * getInfCteComp().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.InfCteComp } * * */ public List<TCTe.InfCte.InfCteComp> getInfCteComp() { if (infCteComp == null) { infCteComp = new ArrayList<TCTe.InfCte.InfCteComp>(); } return this.infCteComp; } /** * Gets the value of the autXML property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the autXML property. * * <p> * For example, to add a new item, do as follows: * <pre> * getAutXML().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.AutXML } * * */ public List<TCTe.InfCte.AutXML> getAutXML() { if (autXML == null) { autXML = new ArrayList<TCTe.InfCte.AutXML>(); } return this.autXML; } /** * Obtém o valor da propriedade infRespTec. * * @return * possible object is * {@link TRespTec } * */ public TRespTec getInfRespTec() { return infRespTec; } /** * Define o valor da propriedade infRespTec. * * @param value * allowed object is * {@link TRespTec } * */ public void setInfRespTec(TRespTec value) { this.infRespTec = value; } /** * Obtém o valor da propriedade infSolicNFF. * * @return * possible object is * {@link TCTe.InfCte.InfSolicNFF } * */ public TCTe.InfCte.InfSolicNFF getInfSolicNFF() { return infSolicNFF; } /** * Define o valor da propriedade infSolicNFF. * * @param value * allowed object is * {@link TCTe.InfCte.InfSolicNFF } * */ public void setInfSolicNFF(TCTe.InfCte.InfSolicNFF value) { this.infSolicNFF = value; } /** * Obtém o valor da propriedade infPAA. * * @return * possible object is * {@link TCTe.InfCte.InfPAA } * */ public TCTe.InfCte.InfPAA getInfPAA() { return infPAA; } /** * Define o valor da propriedade infPAA. * * @param value * allowed object is * {@link TCTe.InfCte.InfPAA } * */ public void setInfPAA(TCTe.InfCte.InfPAA value) { this.infPAA = value; } /** * Obtém o valor da propriedade versao. * * @return * possible object is * {@link String } * */ public String getVersao() { return versao; } /** * Define o valor da propriedade versao. * * @param value * allowed object is * {@link String } * */ public void setVersao(String value) { this.versao = value; } /** * Obtém o valor da propriedade id. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Define o valor da propriedade id. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpj"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "cnpj", "cpf" }) public static class AutXML { @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/cte") protected String cnpj; @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/cte") protected String cpf; /** * Obtém o valor da propriedade cnpj. * * @return * possible object is * {@link String } * */ public String getCNPJ() { return cnpj; } /** * Define o valor da propriedade cnpj. * * @param value * allowed object is * {@link String } * */ public void setCNPJ(String value) { this.cnpj = value; } /** * Obtém o valor da propriedade cpf. * * @return * possible object is * {@link String } * */ public String getCPF() { return cpf; } /** * Define o valor da propriedade cpf. * * @param value * allowed object is * {@link String } * */ public void setCPF(String value) { this.cpf = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xCaracAd" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="15"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xCaracSer" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xEmi" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fluxo" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xOrig" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="pass" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xPass" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="15"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="xDest" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xRota" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="10"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="Entrega" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="semData"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="comData"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dProg" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="noPeriodo"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dIni" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;element name="dFim" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;choice> * &lt;element name="semHora"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="comHora"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="hProg" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="noInter"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="hIni" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;element name="hFim" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="origCalc" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="40"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="destCalc" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="40"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xObs" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="2000"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="ObsCont" maxOccurs="10" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xTexto"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="160"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;attribute name="xCampo" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="ObsFisco" maxOccurs="10" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xTexto"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;attribute name="xCampo" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "xCaracAd", "xCaracSer", "xEmi", "fluxo", "entrega", "origCalc", "destCalc", "xObs", "obsCont", "obsFisco" }) public static class Compl { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xCaracAd; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xCaracSer; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xEmi; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Compl.Fluxo fluxo; @XmlElement(name = "Entrega", namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Compl.Entrega entrega; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String origCalc; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String destCalc; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xObs; @XmlElement(name = "ObsCont", namespace = "http://www.portalfiscal.inf.br/cte") protected List<TCTe.InfCte.Compl.ObsCont> obsCont; @XmlElement(name = "ObsFisco", namespace = "http://www.portalfiscal.inf.br/cte") protected List<TCTe.InfCte.Compl.ObsFisco> obsFisco; /** * Obtém o valor da propriedade xCaracAd. * * @return * possible object is * {@link String } * */ public String getXCaracAd() { return xCaracAd; } /** * Define o valor da propriedade xCaracAd. * * @param value * allowed object is * {@link String } * */ public void setXCaracAd(String value) { this.xCaracAd = value; } /** * Obtém o valor da propriedade xCaracSer. * * @return * possible object is * {@link String } * */ public String getXCaracSer() { return xCaracSer; } /** * Define o valor da propriedade xCaracSer. * * @param value * allowed object is * {@link String } * */ public void setXCaracSer(String value) { this.xCaracSer = value; } /** * Obtém o valor da propriedade xEmi. * * @return * possible object is * {@link String } * */ public String getXEmi() { return xEmi; } /** * Define o valor da propriedade xEmi. * * @param value * allowed object is * {@link String } * */ public void setXEmi(String value) { this.xEmi = value; } /** * Obtém o valor da propriedade fluxo. * * @return * possible object is * {@link TCTe.InfCte.Compl.Fluxo } * */ public TCTe.InfCte.Compl.Fluxo getFluxo() { return fluxo; } /** * Define o valor da propriedade fluxo. * * @param value * allowed object is * {@link TCTe.InfCte.Compl.Fluxo } * */ public void setFluxo(TCTe.InfCte.Compl.Fluxo value) { this.fluxo = value; } /** * Obtém o valor da propriedade entrega. * * @return * possible object is * {@link TCTe.InfCte.Compl.Entrega } * */ public TCTe.InfCte.Compl.Entrega getEntrega() { return entrega; } /** * Define o valor da propriedade entrega. * * @param value * allowed object is * {@link TCTe.InfCte.Compl.Entrega } * */ public void setEntrega(TCTe.InfCte.Compl.Entrega value) { this.entrega = value; } /** * Obtém o valor da propriedade origCalc. * * @return * possible object is * {@link String } * */ public String getOrigCalc() { return origCalc; } /** * Define o valor da propriedade origCalc. * * @param value * allowed object is * {@link String } * */ public void setOrigCalc(String value) { this.origCalc = value; } /** * Obtém o valor da propriedade destCalc. * * @return * possible object is * {@link String } * */ public String getDestCalc() { return destCalc; } /** * Define o valor da propriedade destCalc. * * @param value * allowed object is * {@link String } * */ public void setDestCalc(String value) { this.destCalc = value; } /** * Obtém o valor da propriedade xObs. * * @return * possible object is * {@link String } * */ public String getXObs() { return xObs; } /** * Define o valor da propriedade xObs. * * @param value * allowed object is * {@link String } * */ public void setXObs(String value) { this.xObs = value; } /** * Gets the value of the obsCont property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the obsCont property. * * <p> * For example, to add a new item, do as follows: * <pre> * getObsCont().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.Compl.ObsCont } * * */ public List<TCTe.InfCte.Compl.ObsCont> getObsCont() { if (obsCont == null) { obsCont = new ArrayList<TCTe.InfCte.Compl.ObsCont>(); } return this.obsCont; } /** * Gets the value of the obsFisco property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the obsFisco property. * * <p> * For example, to add a new item, do as follows: * <pre> * getObsFisco().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.Compl.ObsFisco } * * */ public List<TCTe.InfCte.Compl.ObsFisco> getObsFisco() { if (obsFisco == null) { obsFisco = new ArrayList<TCTe.InfCte.Compl.ObsFisco>(); } return this.obsFisco; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="semData"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="comData"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dProg" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="noPeriodo"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dIni" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;element name="dFim" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;choice> * &lt;element name="semHora"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="comHora"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="hProg" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="noInter"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="hIni" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;element name="hFim" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "semData", "comData", "noPeriodo", "semHora", "comHora", "noInter" }) public static class Entrega { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Compl.Entrega.SemData semData; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Compl.Entrega.ComData comData; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Compl.Entrega.NoPeriodo noPeriodo; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Compl.Entrega.SemHora semHora; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Compl.Entrega.ComHora comHora; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Compl.Entrega.NoInter noInter; /** * Obtém o valor da propriedade semData. * * @return * possible object is * {@link TCTe.InfCte.Compl.Entrega.SemData } * */ public TCTe.InfCte.Compl.Entrega.SemData getSemData() { return semData; } /** * Define o valor da propriedade semData. * * @param value * allowed object is * {@link TCTe.InfCte.Compl.Entrega.SemData } * */ public void setSemData(TCTe.InfCte.Compl.Entrega.SemData value) { this.semData = value; } /** * Obtém o valor da propriedade comData. * * @return * possible object is * {@link TCTe.InfCte.Compl.Entrega.ComData } * */ public TCTe.InfCte.Compl.Entrega.ComData getComData() { return comData; } /** * Define o valor da propriedade comData. * * @param value * allowed object is * {@link TCTe.InfCte.Compl.Entrega.ComData } * */ public void setComData(TCTe.InfCte.Compl.Entrega.ComData value) { this.comData = value; } /** * Obtém o valor da propriedade noPeriodo. * * @return * possible object is * {@link TCTe.InfCte.Compl.Entrega.NoPeriodo } * */ public TCTe.InfCte.Compl.Entrega.NoPeriodo getNoPeriodo() { return noPeriodo; } /** * Define o valor da propriedade noPeriodo. * * @param value * allowed object is * {@link TCTe.InfCte.Compl.Entrega.NoPeriodo } * */ public void setNoPeriodo(TCTe.InfCte.Compl.Entrega.NoPeriodo value) { this.noPeriodo = value; } /** * Obtém o valor da propriedade semHora. * * @return * possible object is * {@link TCTe.InfCte.Compl.Entrega.SemHora } * */ public TCTe.InfCte.Compl.Entrega.SemHora getSemHora() { return semHora; } /** * Define o valor da propriedade semHora. * * @param value * allowed object is * {@link TCTe.InfCte.Compl.Entrega.SemHora } * */ public void setSemHora(TCTe.InfCte.Compl.Entrega.SemHora value) { this.semHora = value; } /** * Obtém o valor da propriedade comHora. * * @return * possible object is * {@link TCTe.InfCte.Compl.Entrega.ComHora } * */ public TCTe.InfCte.Compl.Entrega.ComHora getComHora() { return comHora; } /** * Define o valor da propriedade comHora. * * @param value * allowed object is * {@link TCTe.InfCte.Compl.Entrega.ComHora } * */ public void setComHora(TCTe.InfCte.Compl.Entrega.ComHora value) { this.comHora = value; } /** * Obtém o valor da propriedade noInter. * * @return * possible object is * {@link TCTe.InfCte.Compl.Entrega.NoInter } * */ public TCTe.InfCte.Compl.Entrega.NoInter getNoInter() { return noInter; } /** * Define o valor da propriedade noInter. * * @param value * allowed object is * {@link TCTe.InfCte.Compl.Entrega.NoInter } * */ public void setNoInter(TCTe.InfCte.Compl.Entrega.NoInter value) { this.noInter = value; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dProg" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "tpPer", "dProg" }) public static class ComData { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpPer; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String dProg; /** * Obtém o valor da propriedade tpPer. * * @return * possible object is * {@link String } * */ public String getTpPer() { return tpPer; } /** * Define o valor da propriedade tpPer. * * @param value * allowed object is * {@link String } * */ public void setTpPer(String value) { this.tpPer = value; } /** * Obtém o valor da propriedade dProg. * * @return * possible object is * {@link String } * */ public String getDProg() { return dProg; } /** * Define o valor da propriedade dProg. * * @param value * allowed object is * {@link String } * */ public void setDProg(String value) { this.dProg = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="hProg" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "tpHor", "hProg" }) public static class ComHora { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpHor; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String hProg; /** * Obtém o valor da propriedade tpHor. * * @return * possible object is * {@link String } * */ public String getTpHor() { return tpHor; } /** * Define o valor da propriedade tpHor. * * @param value * allowed object is * {@link String } * */ public void setTpHor(String value) { this.tpHor = value; } /** * Obtém o valor da propriedade hProg. * * @return * possible object is * {@link String } * */ public String getHProg() { return hProg; } /** * Define o valor da propriedade hProg. * * @param value * allowed object is * {@link String } * */ public void setHProg(String value) { this.hProg = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="hIni" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;element name="hFim" type="{http://www.portalfiscal.inf.br/cte}TTime"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "tpHor", "hIni", "hFim" }) public static class NoInter { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpHor; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String hIni; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String hFim; /** * Obtém o valor da propriedade tpHor. * * @return * possible object is * {@link String } * */ public String getTpHor() { return tpHor; } /** * Define o valor da propriedade tpHor. * * @param value * allowed object is * {@link String } * */ public void setTpHor(String value) { this.tpHor = value; } /** * Obtém o valor da propriedade hIni. * * @return * possible object is * {@link String } * */ public String getHIni() { return hIni; } /** * Define o valor da propriedade hIni. * * @param value * allowed object is * {@link String } * */ public void setHIni(String value) { this.hIni = value; } /** * Obtém o valor da propriedade hFim. * * @return * possible object is * {@link String } * */ public String getHFim() { return hFim; } /** * Define o valor da propriedade hFim. * * @param value * allowed object is * {@link String } * */ public void setHFim(String value) { this.hFim = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dIni" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;element name="dFim" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "tpPer", "dIni", "dFim" }) public static class NoPeriodo { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpPer; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String dIni; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String dFim; /** * Obtém o valor da propriedade tpPer. * * @return * possible object is * {@link String } * */ public String getTpPer() { return tpPer; } /** * Define o valor da propriedade tpPer. * * @param value * allowed object is * {@link String } * */ public void setTpPer(String value) { this.tpPer = value; } /** * Obtém o valor da propriedade dIni. * * @return * possible object is * {@link String } * */ public String getDIni() { return dIni; } /** * Define o valor da propriedade dIni. * * @param value * allowed object is * {@link String } * */ public void setDIni(String value) { this.dIni = value; } /** * Obtém o valor da propriedade dFim. * * @return * possible object is * {@link String } * */ public String getDFim() { return dFim; } /** * Define o valor da propriedade dFim. * * @param value * allowed object is * {@link String } * */ public void setDFim(String value) { this.dFim = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpPer"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "tpPer" }) public static class SemData { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpPer; /** * Obtém o valor da propriedade tpPer. * * @return * possible object is * {@link String } * */ public String getTpPer() { return tpPer; } /** * Define o valor da propriedade tpPer. * * @param value * allowed object is * {@link String } * */ public void setTpPer(String value) { this.tpPer = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpHor"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "tpHor" }) public static class SemHora { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpHor; /** * Obtém o valor da propriedade tpHor. * * @return * possible object is * {@link String } * */ public String getTpHor() { return tpHor; } /** * Define o valor da propriedade tpHor. * * @param value * allowed object is * {@link String } * */ public void setTpHor(String value) { this.tpHor = value; } } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xOrig" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="pass" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xPass" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="15"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="xDest" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xRota" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="10"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "xOrig", "pass", "xDest", "xRota" }) public static class Fluxo { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xOrig; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TCTe.InfCte.Compl.Fluxo.Pass> pass; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xDest; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xRota; /** * Obtém o valor da propriedade xOrig. * * @return * possible object is * {@link String } * */ public String getXOrig() { return xOrig; } /** * Define o valor da propriedade xOrig. * * @param value * allowed object is * {@link String } * */ public void setXOrig(String value) { this.xOrig = value; } /** * Gets the value of the pass property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the pass property. * * <p> * For example, to add a new item, do as follows: * <pre> * getPass().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.Compl.Fluxo.Pass } * * */ public List<TCTe.InfCte.Compl.Fluxo.Pass> getPass() { if (pass == null) { pass = new ArrayList<TCTe.InfCte.Compl.Fluxo.Pass>(); } return this.pass; } /** * Obtém o valor da propriedade xDest. * * @return * possible object is * {@link String } * */ public String getXDest() { return xDest; } /** * Define o valor da propriedade xDest. * * @param value * allowed object is * {@link String } * */ public void setXDest(String value) { this.xDest = value; } /** * Obtém o valor da propriedade xRota. * * @return * possible object is * {@link String } * */ public String getXRota() { return xRota; } /** * Define o valor da propriedade xRota. * * @param value * allowed object is * {@link String } * */ public void setXRota(String value) { this.xRota = value; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xPass" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="15"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "xPass" }) public static class Pass { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xPass; /** * Obtém o valor da propriedade xPass. * * @return * possible object is * {@link String } * */ public String getXPass() { return xPass; } /** * Define o valor da propriedade xPass. * * @param value * allowed object is * {@link String } * */ public void setXPass(String value) { this.xPass = value; } } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xTexto"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="160"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;attribute name="xCampo" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "xTexto" }) public static class ObsCont { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xTexto; @XmlAttribute(name = "xCampo", required = true) protected String xCampo; /** * Obtém o valor da propriedade xTexto. * * @return * possible object is * {@link String } * */ public String getXTexto() { return xTexto; } /** * Define o valor da propriedade xTexto. * * @param value * allowed object is * {@link String } * */ public void setXTexto(String value) { this.xTexto = value; } /** * Obtém o valor da propriedade xCampo. * * @return * possible object is * {@link String } * */ public String getXCampo() { return xCampo; } /** * Define o valor da propriedade xCampo. * * @param value * allowed object is * {@link String } * */ public void setXCampo(String value) { this.xCampo = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xTexto"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;attribute name="xCampo" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "xTexto" }) public static class ObsFisco { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xTexto; @XmlAttribute(name = "xCampo", required = true) protected String xCampo; /** * Obtém o valor da propriedade xTexto. * * @return * possible object is * {@link String } * */ public String getXTexto() { return xTexto; } /** * Define o valor da propriedade xTexto. * * @param value * allowed object is * {@link String } * */ public void setXTexto(String value) { this.xTexto = value; } /** * Obtém o valor da propriedade xCampo. * * @return * possible object is * {@link String } * */ public String getXCampo() { return xCampo; } /** * Define o valor da propriedade xCampo. * * @param value * allowed object is * {@link String } * */ public void setXCampo(String value) { this.xCampo = value; } } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="ISUF" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;pattern value="[0-9]{8,9}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="enderDest" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" type="{http://www.portalfiscal.inf.br/cte}TEmail" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "cnpj", "cpf", "ie", "xNome", "fone", "isuf", "enderDest", "email" }) public static class Dest { @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/cte") protected String cnpj; @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/cte") protected String cpf; @XmlElement(name = "IE", namespace = "http://www.portalfiscal.inf.br/cte") protected String ie; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xNome; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String fone; @XmlElement(name = "ISUF", namespace = "http://www.portalfiscal.inf.br/cte") protected String isuf; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TEndereco enderDest; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String email; /** * Obtém o valor da propriedade cnpj. * * @return * possible object is * {@link String } * */ public String getCNPJ() { return cnpj; } /** * Define o valor da propriedade cnpj. * * @param value * allowed object is * {@link String } * */ public void setCNPJ(String value) { this.cnpj = value; } /** * Obtém o valor da propriedade cpf. * * @return * possible object is * {@link String } * */ public String getCPF() { return cpf; } /** * Define o valor da propriedade cpf. * * @param value * allowed object is * {@link String } * */ public void setCPF(String value) { this.cpf = value; } /** * Obtém o valor da propriedade ie. * * @return * possible object is * {@link String } * */ public String getIE() { return ie; } /** * Define o valor da propriedade ie. * * @param value * allowed object is * {@link String } * */ public void setIE(String value) { this.ie = value; } /** * Obtém o valor da propriedade xNome. * * @return * possible object is * {@link String } * */ public String getXNome() { return xNome; } /** * Define o valor da propriedade xNome. * * @param value * allowed object is * {@link String } * */ public void setXNome(String value) { this.xNome = value; } /** * Obtém o valor da propriedade fone. * * @return * possible object is * {@link String } * */ public String getFone() { return fone; } /** * Define o valor da propriedade fone. * * @param value * allowed object is * {@link String } * */ public void setFone(String value) { this.fone = value; } /** * Obtém o valor da propriedade isuf. * * @return * possible object is * {@link String } * */ public String getISUF() { return isuf; } /** * Define o valor da propriedade isuf. * * @param value * allowed object is * {@link String } * */ public void setISUF(String value) { this.isuf = value; } /** * Obtém o valor da propriedade enderDest. * * @return * possible object is * {@link TEndereco } * */ public TEndereco getEnderDest() { return enderDest; } /** * Define o valor da propriedade enderDest. * * @param value * allowed object is * {@link TEndereco } * */ public void setEnderDest(TEndereco value) { this.enderDest = value; } /** * Obtém o valor da propriedade email. * * @return * possible object is * {@link String } * */ public String getEmail() { return email; } /** * Define o valor da propriedade email. * * @param value * allowed object is * {@link String } * */ public void setEmail(String value) { this.email = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpj"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIe"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="IEST" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIe"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xFant" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="enderEmit" type="{http://www.portalfiscal.inf.br/cte}TEndeEmi"/> * &lt;element name="CRT" type="{http://www.portalfiscal.inf.br/cte}TCRT"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "cnpj", "cpf", "ie", "iest", "xNome", "xFant", "enderEmit", "crt" }) public static class Emit { @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/cte") protected String cnpj; @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/cte") protected String cpf; @XmlElement(name = "IE", namespace = "http://www.portalfiscal.inf.br/cte") protected String ie; @XmlElement(name = "IEST", namespace = "http://www.portalfiscal.inf.br/cte") protected String iest; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xNome; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xFant; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TEndeEmi enderEmit; @XmlElement(name = "CRT", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String crt; /** * Obtém o valor da propriedade cnpj. * * @return * possible object is * {@link String } * */ public String getCNPJ() { return cnpj; } /** * Define o valor da propriedade cnpj. * * @param value * allowed object is * {@link String } * */ public void setCNPJ(String value) { this.cnpj = value; } /** * Obtém o valor da propriedade cpf. * * @return * possible object is * {@link String } * */ public String getCPF() { return cpf; } /** * Define o valor da propriedade cpf. * * @param value * allowed object is * {@link String } * */ public void setCPF(String value) { this.cpf = value; } /** * Obtém o valor da propriedade ie. * * @return * possible object is * {@link String } * */ public String getIE() { return ie; } /** * Define o valor da propriedade ie. * * @param value * allowed object is * {@link String } * */ public void setIE(String value) { this.ie = value; } /** * Obtém o valor da propriedade iest. * * @return * possible object is * {@link String } * */ public String getIEST() { return iest; } /** * Define o valor da propriedade iest. * * @param value * allowed object is * {@link String } * */ public void setIEST(String value) { this.iest = value; } /** * Obtém o valor da propriedade xNome. * * @return * possible object is * {@link String } * */ public String getXNome() { return xNome; } /** * Define o valor da propriedade xNome. * * @param value * allowed object is * {@link String } * */ public void setXNome(String value) { this.xNome = value; } /** * Obtém o valor da propriedade xFant. * * @return * possible object is * {@link String } * */ public String getXFant() { return xFant; } /** * Define o valor da propriedade xFant. * * @param value * allowed object is * {@link String } * */ public void setXFant(String value) { this.xFant = value; } /** * Obtém o valor da propriedade enderEmit. * * @return * possible object is * {@link TEndeEmi } * */ public TEndeEmi getEnderEmit() { return enderEmit; } /** * Define o valor da propriedade enderEmit. * * @param value * allowed object is * {@link TEndeEmi } * */ public void setEnderEmit(TEndeEmi value) { this.enderEmit = value; } /** * Obtém o valor da propriedade crt. * * @return * possible object is * {@link String } * */ public String getCRT() { return crt; } /** * Define o valor da propriedade crt. * * @param value * allowed object is * {@link String } * */ public void setCRT(String value) { this.crt = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="enderExped" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" type="{http://www.portalfiscal.inf.br/cte}TEmail" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "cnpj", "cpf", "ie", "xNome", "fone", "enderExped", "email" }) public static class Exped { @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/cte") protected String cnpj; @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/cte") protected String cpf; @XmlElement(name = "IE", namespace = "http://www.portalfiscal.inf.br/cte") protected String ie; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xNome; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String fone; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TEndereco enderExped; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String email; /** * Obtém o valor da propriedade cnpj. * * @return * possible object is * {@link String } * */ public String getCNPJ() { return cnpj; } /** * Define o valor da propriedade cnpj. * * @param value * allowed object is * {@link String } * */ public void setCNPJ(String value) { this.cnpj = value; } /** * Obtém o valor da propriedade cpf. * * @return * possible object is * {@link String } * */ public String getCPF() { return cpf; } /** * Define o valor da propriedade cpf. * * @param value * allowed object is * {@link String } * */ public void setCPF(String value) { this.cpf = value; } /** * Obtém o valor da propriedade ie. * * @return * possible object is * {@link String } * */ public String getIE() { return ie; } /** * Define o valor da propriedade ie. * * @param value * allowed object is * {@link String } * */ public void setIE(String value) { this.ie = value; } /** * Obtém o valor da propriedade xNome. * * @return * possible object is * {@link String } * */ public String getXNome() { return xNome; } /** * Define o valor da propriedade xNome. * * @param value * allowed object is * {@link String } * */ public void setXNome(String value) { this.xNome = value; } /** * Obtém o valor da propriedade fone. * * @return * possible object is * {@link String } * */ public String getFone() { return fone; } /** * Define o valor da propriedade fone. * * @param value * allowed object is * {@link String } * */ public void setFone(String value) { this.fone = value; } /** * Obtém o valor da propriedade enderExped. * * @return * possible object is * {@link TEndereco } * */ public TEndereco getEnderExped() { return enderExped; } /** * Define o valor da propriedade enderExped. * * @param value * allowed object is * {@link TEndereco } * */ public void setEnderExped(TEndereco value) { this.enderExped = value; } /** * Obtém o valor da propriedade email. * * @return * possible object is * {@link String } * */ public String getEmail() { return email; } /** * Define o valor da propriedade email. * * @param value * allowed object is * {@link String } * */ public void setEmail(String value) { this.email = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="cUF" type="{http://www.portalfiscal.inf.br/cte}TCodUfIBGE"/> * &lt;element name="cCT"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;pattern value="[0-9]{8}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="CFOP" type="{http://www.portalfiscal.inf.br/cte}TCfop"/> * &lt;element name="natOp"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="mod" type="{http://www.portalfiscal.inf.br/cte}TModCT"/> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TSerie"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nCT" type="{http://www.portalfiscal.inf.br/cte}TNF"/> * &lt;element name="dhEmi"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TDateTimeUTC"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpImp"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpEmis"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="3"/> * &lt;enumeration value="4"/> * &lt;enumeration value="5"/> * &lt;enumeration value="7"/> * &lt;enumeration value="8"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cDV"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;pattern value="[0-9]{1}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpAmb" type="{http://www.portalfiscal.inf.br/cte}TAmb"/> * &lt;element name="tpCTe" type="{http://www.portalfiscal.inf.br/cte}TFinCTe"/> * &lt;element name="procEmi" type="{http://www.portalfiscal.inf.br/cte}TProcEmi"/> * &lt;element name="verProc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="indGlobalizado" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;enumeration value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cMunEnv" type="{http://www.portalfiscal.inf.br/cte}TCodMunIBGE"/> * &lt;element name="xMunEnv"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="UFEnv" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;element name="modal" type="{http://www.portalfiscal.inf.br/cte}TModTransp"/> * &lt;element name="tpServ"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cMunIni" type="{http://www.portalfiscal.inf.br/cte}TCodMunIBGE"/> * &lt;element name="xMunIni"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="UFIni" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;element name="cMunFim" type="{http://www.portalfiscal.inf.br/cte}TCodMunIBGE"/> * &lt;element name="xMunFim"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="UFFim" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;element name="retira"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;enumeration value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xDetRetira" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="160"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="indIEToma"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="9"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;choice> * &lt;element name="toma3"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="toma"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="toma4"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="toma"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;sequence> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xFant" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="enderToma" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" type="{http://www.portalfiscal.inf.br/cte}TEmail" minOccurs="0"/> * &lt;/sequence> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;sequence minOccurs="0"> * &lt;element name="dhCont" type="{http://www.portalfiscal.inf.br/cte}TDateTimeUTC"/> * &lt;element name="xJust"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="15"/> * &lt;maxLength value="256"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "cuf", "cct", "cfop", "natOp", "mod", "serie", "nct", "dhEmi", "tpImp", "tpEmis", "cdv", "tpAmb", "tpCTe", "procEmi", "verProc", "indGlobalizado", "cMunEnv", "xMunEnv", "ufEnv", "modal", "tpServ", "cMunIni", "xMunIni", "ufIni", "cMunFim", "xMunFim", "ufFim", "retira", "xDetRetira", "indIEToma", "toma3", "toma4", "dhCont", "xJust" }) public static class Ide { @XmlElement(name = "cUF", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String cuf; @XmlElement(name = "cCT", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String cct; @XmlElement(name = "CFOP", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String cfop; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String natOp; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String mod; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String serie; @XmlElement(name = "nCT", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String nct; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String dhEmi; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpImp; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpEmis; @XmlElement(name = "cDV", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String cdv; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpAmb; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpCTe; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String procEmi; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String verProc; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String indGlobalizado; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String cMunEnv; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xMunEnv; @XmlElement(name = "UFEnv", namespace = "http://www.portalfiscal.inf.br/cte", required = true) @XmlSchemaType(name = "string") protected TUf ufEnv; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String modal; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpServ; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String cMunIni; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xMunIni; @XmlElement(name = "UFIni", namespace = "http://www.portalfiscal.inf.br/cte", required = true) @XmlSchemaType(name = "string") protected TUf ufIni; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String cMunFim; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xMunFim; @XmlElement(name = "UFFim", namespace = "http://www.portalfiscal.inf.br/cte", required = true) @XmlSchemaType(name = "string") protected TUf ufFim; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String retira; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xDetRetira; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String indIEToma; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Ide.Toma3 toma3; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Ide.Toma4 toma4; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String dhCont; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xJust; /** * Obtém o valor da propriedade cuf. * * @return * possible object is * {@link String } * */ public String getCUF() { return cuf; } /** * Define o valor da propriedade cuf. * * @param value * allowed object is * {@link String } * */ public void setCUF(String value) { this.cuf = value; } /** * Obtém o valor da propriedade cct. * * @return * possible object is * {@link String } * */ public String getCCT() { return cct; } /** * Define o valor da propriedade cct. * * @param value * allowed object is * {@link String } * */ public void setCCT(String value) { this.cct = value; } /** * Obtém o valor da propriedade cfop. * * @return * possible object is * {@link String } * */ public String getCFOP() { return cfop; } /** * Define o valor da propriedade cfop. * * @param value * allowed object is * {@link String } * */ public void setCFOP(String value) { this.cfop = value; } /** * Obtém o valor da propriedade natOp. * * @return * possible object is * {@link String } * */ public String getNatOp() { return natOp; } /** * Define o valor da propriedade natOp. * * @param value * allowed object is * {@link String } * */ public void setNatOp(String value) { this.natOp = value; } /** * Obtém o valor da propriedade mod. * * @return * possible object is * {@link String } * */ public String getMod() { return mod; } /** * Define o valor da propriedade mod. * * @param value * allowed object is * {@link String } * */ public void setMod(String value) { this.mod = value; } /** * Obtém o valor da propriedade serie. * * @return * possible object is * {@link String } * */ public String getSerie() { return serie; } /** * Define o valor da propriedade serie. * * @param value * allowed object is * {@link String } * */ public void setSerie(String value) { this.serie = value; } /** * Obtém o valor da propriedade nct. * * @return * possible object is * {@link String } * */ public String getNCT() { return nct; } /** * Define o valor da propriedade nct. * * @param value * allowed object is * {@link String } * */ public void setNCT(String value) { this.nct = value; } /** * Obtém o valor da propriedade dhEmi. * * @return * possible object is * {@link String } * */ public String getDhEmi() { return dhEmi; } /** * Define o valor da propriedade dhEmi. * * @param value * allowed object is * {@link String } * */ public void setDhEmi(String value) { this.dhEmi = value; } /** * Obtém o valor da propriedade tpImp. * * @return * possible object is * {@link String } * */ public String getTpImp() { return tpImp; } /** * Define o valor da propriedade tpImp. * * @param value * allowed object is * {@link String } * */ public void setTpImp(String value) { this.tpImp = value; } /** * Obtém o valor da propriedade tpEmis. * * @return * possible object is * {@link String } * */ public String getTpEmis() { return tpEmis; } /** * Define o valor da propriedade tpEmis. * * @param value * allowed object is * {@link String } * */ public void setTpEmis(String value) { this.tpEmis = value; } /** * Obtém o valor da propriedade cdv. * * @return * possible object is * {@link String } * */ public String getCDV() { return cdv; } /** * Define o valor da propriedade cdv. * * @param value * allowed object is * {@link String } * */ public void setCDV(String value) { this.cdv = value; } /** * Obtém o valor da propriedade tpAmb. * * @return * possible object is * {@link String } * */ public String getTpAmb() { return tpAmb; } /** * Define o valor da propriedade tpAmb. * * @param value * allowed object is * {@link String } * */ public void setTpAmb(String value) { this.tpAmb = value; } /** * Obtém o valor da propriedade tpCTe. * * @return * possible object is * {@link String } * */ public String getTpCTe() { return tpCTe; } /** * Define o valor da propriedade tpCTe. * * @param value * allowed object is * {@link String } * */ public void setTpCTe(String value) { this.tpCTe = value; } /** * Obtém o valor da propriedade procEmi. * * @return * possible object is * {@link String } * */ public String getProcEmi() { return procEmi; } /** * Define o valor da propriedade procEmi. * * @param value * allowed object is * {@link String } * */ public void setProcEmi(String value) { this.procEmi = value; } /** * Obtém o valor da propriedade verProc. * * @return * possible object is * {@link String } * */ public String getVerProc() { return verProc; } /** * Define o valor da propriedade verProc. * * @param value * allowed object is * {@link String } * */ public void setVerProc(String value) { this.verProc = value; } /** * Obtém o valor da propriedade indGlobalizado. * * @return * possible object is * {@link String } * */ public String getIndGlobalizado() { return indGlobalizado; } /** * Define o valor da propriedade indGlobalizado. * * @param value * allowed object is * {@link String } * */ public void setIndGlobalizado(String value) { this.indGlobalizado = value; } /** * Obtém o valor da propriedade cMunEnv. * * @return * possible object is * {@link String } * */ public String getCMunEnv() { return cMunEnv; } /** * Define o valor da propriedade cMunEnv. * * @param value * allowed object is * {@link String } * */ public void setCMunEnv(String value) { this.cMunEnv = value; } /** * Obtém o valor da propriedade xMunEnv. * * @return * possible object is * {@link String } * */ public String getXMunEnv() { return xMunEnv; } /** * Define o valor da propriedade xMunEnv. * * @param value * allowed object is * {@link String } * */ public void setXMunEnv(String value) { this.xMunEnv = value; } /** * Obtém o valor da propriedade ufEnv. * * @return * possible object is * {@link TUf } * */ public TUf getUFEnv() { return ufEnv; } /** * Define o valor da propriedade ufEnv. * * @param value * allowed object is * {@link TUf } * */ public void setUFEnv(TUf value) { this.ufEnv = value; } /** * Obtém o valor da propriedade modal. * * @return * possible object is * {@link String } * */ public String getModal() { return modal; } /** * Define o valor da propriedade modal. * * @param value * allowed object is * {@link String } * */ public void setModal(String value) { this.modal = value; } /** * Obtém o valor da propriedade tpServ. * * @return * possible object is * {@link String } * */ public String getTpServ() { return tpServ; } /** * Define o valor da propriedade tpServ. * * @param value * allowed object is * {@link String } * */ public void setTpServ(String value) { this.tpServ = value; } /** * Obtém o valor da propriedade cMunIni. * * @return * possible object is * {@link String } * */ public String getCMunIni() { return cMunIni; } /** * Define o valor da propriedade cMunIni. * * @param value * allowed object is * {@link String } * */ public void setCMunIni(String value) { this.cMunIni = value; } /** * Obtém o valor da propriedade xMunIni. * * @return * possible object is * {@link String } * */ public String getXMunIni() { return xMunIni; } /** * Define o valor da propriedade xMunIni. * * @param value * allowed object is * {@link String } * */ public void setXMunIni(String value) { this.xMunIni = value; } /** * Obtém o valor da propriedade ufIni. * * @return * possible object is * {@link TUf } * */ public TUf getUFIni() { return ufIni; } /** * Define o valor da propriedade ufIni. * * @param value * allowed object is * {@link TUf } * */ public void setUFIni(TUf value) { this.ufIni = value; } /** * Obtém o valor da propriedade cMunFim. * * @return * possible object is * {@link String } * */ public String getCMunFim() { return cMunFim; } /** * Define o valor da propriedade cMunFim. * * @param value * allowed object is * {@link String } * */ public void setCMunFim(String value) { this.cMunFim = value; } /** * Obtém o valor da propriedade xMunFim. * * @return * possible object is * {@link String } * */ public String getXMunFim() { return xMunFim; } /** * Define o valor da propriedade xMunFim. * * @param value * allowed object is * {@link String } * */ public void setXMunFim(String value) { this.xMunFim = value; } /** * Obtém o valor da propriedade ufFim. * * @return * possible object is * {@link TUf } * */ public TUf getUFFim() { return ufFim; } /** * Define o valor da propriedade ufFim. * * @param value * allowed object is * {@link TUf } * */ public void setUFFim(TUf value) { this.ufFim = value; } /** * Obtém o valor da propriedade retira. * * @return * possible object is * {@link String } * */ public String getRetira() { return retira; } /** * Define o valor da propriedade retira. * * @param value * allowed object is * {@link String } * */ public void setRetira(String value) { this.retira = value; } /** * Obtém o valor da propriedade xDetRetira. * * @return * possible object is * {@link String } * */ public String getXDetRetira() { return xDetRetira; } /** * Define o valor da propriedade xDetRetira. * * @param value * allowed object is * {@link String } * */ public void setXDetRetira(String value) { this.xDetRetira = value; } /** * Obtém o valor da propriedade indIEToma. * * @return * possible object is * {@link String } * */ public String getIndIEToma() { return indIEToma; } /** * Define o valor da propriedade indIEToma. * * @param value * allowed object is * {@link String } * */ public void setIndIEToma(String value) { this.indIEToma = value; } /** * Obtém o valor da propriedade toma3. * * @return * possible object is * {@link TCTe.InfCte.Ide.Toma3 } * */ public TCTe.InfCte.Ide.Toma3 getToma3() { return toma3; } /** * Define o valor da propriedade toma3. * * @param value * allowed object is * {@link TCTe.InfCte.Ide.Toma3 } * */ public void setToma3(TCTe.InfCte.Ide.Toma3 value) { this.toma3 = value; } /** * Obtém o valor da propriedade toma4. * * @return * possible object is * {@link TCTe.InfCte.Ide.Toma4 } * */ public TCTe.InfCte.Ide.Toma4 getToma4() { return toma4; } /** * Define o valor da propriedade toma4. * * @param value * allowed object is * {@link TCTe.InfCte.Ide.Toma4 } * */ public void setToma4(TCTe.InfCte.Ide.Toma4 value) { this.toma4 = value; } /** * Obtém o valor da propriedade dhCont. * * @return * possible object is * {@link String } * */ public String getDhCont() { return dhCont; } /** * Define o valor da propriedade dhCont. * * @param value * allowed object is * {@link String } * */ public void setDhCont(String value) { this.dhCont = value; } /** * Obtém o valor da propriedade xJust. * * @return * possible object is * {@link String } * */ public String getXJust() { return xJust; } /** * Define o valor da propriedade xJust. * * @param value * allowed object is * {@link String } * */ public void setXJust(String value) { this.xJust = value; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="toma"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="0"/> * &lt;enumeration value="1"/> * &lt;enumeration value="2"/> * &lt;enumeration value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "toma" }) public static class Toma3 { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String toma; /** * Obtém o valor da propriedade toma. * * @return * possible object is * {@link String } * */ public String getToma() { return toma; } /** * Define o valor da propriedade toma. * * @param value * allowed object is * {@link String } * */ public void setToma(String value) { this.toma = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="toma"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;sequence> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xFant" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="enderToma" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" type="{http://www.portalfiscal.inf.br/cte}TEmail" minOccurs="0"/> * &lt;/sequence> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "toma", "cnpj", "cpf", "ie", "xNome", "xFant", "fone", "enderToma", "email" }) public static class Toma4 { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String toma; @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/cte") protected String cnpj; @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/cte") protected String cpf; @XmlElement(name = "IE", namespace = "http://www.portalfiscal.inf.br/cte") protected String ie; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xNome; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xFant; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String fone; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TEndereco enderToma; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String email; /** * Obtém o valor da propriedade toma. * * @return * possible object is * {@link String } * */ public String getToma() { return toma; } /** * Define o valor da propriedade toma. * * @param value * allowed object is * {@link String } * */ public void setToma(String value) { this.toma = value; } /** * Obtém o valor da propriedade cnpj. * * @return * possible object is * {@link String } * */ public String getCNPJ() { return cnpj; } /** * Define o valor da propriedade cnpj. * * @param value * allowed object is * {@link String } * */ public void setCNPJ(String value) { this.cnpj = value; } /** * Obtém o valor da propriedade cpf. * * @return * possible object is * {@link String } * */ public String getCPF() { return cpf; } /** * Define o valor da propriedade cpf. * * @param value * allowed object is * {@link String } * */ public void setCPF(String value) { this.cpf = value; } /** * Obtém o valor da propriedade ie. * * @return * possible object is * {@link String } * */ public String getIE() { return ie; } /** * Define o valor da propriedade ie. * * @param value * allowed object is * {@link String } * */ public void setIE(String value) { this.ie = value; } /** * Obtém o valor da propriedade xNome. * * @return * possible object is * {@link String } * */ public String getXNome() { return xNome; } /** * Define o valor da propriedade xNome. * * @param value * allowed object is * {@link String } * */ public void setXNome(String value) { this.xNome = value; } /** * Obtém o valor da propriedade xFant. * * @return * possible object is * {@link String } * */ public String getXFant() { return xFant; } /** * Define o valor da propriedade xFant. * * @param value * allowed object is * {@link String } * */ public void setXFant(String value) { this.xFant = value; } /** * Obtém o valor da propriedade fone. * * @return * possible object is * {@link String } * */ public String getFone() { return fone; } /** * Define o valor da propriedade fone. * * @param value * allowed object is * {@link String } * */ public void setFone(String value) { this.fone = value; } /** * Obtém o valor da propriedade enderToma. * * @return * possible object is * {@link TEndereco } * */ public TEndereco getEnderToma() { return enderToma; } /** * Define o valor da propriedade enderToma. * * @param value * allowed object is * {@link TEndereco } * */ public void setEnderToma(TEndereco value) { this.enderToma = value; } /** * Obtém o valor da propriedade email. * * @return * possible object is * {@link String } * */ public String getEmail() { return email; } /** * Define o valor da propriedade email. * * @param value * allowed object is * {@link String } * */ public void setEmail(String value) { this.email = value; } } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="ICMS" type="{http://www.portalfiscal.inf.br/cte}TImp"/> * &lt;element name="vTotTrib" type="{http://www.portalfiscal.inf.br/cte}TDec_1302" minOccurs="0"/> * &lt;element name="infAdFisco" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="2000"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="ICMSUFFim" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="vBCUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="pFCPUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_0302"/> * &lt;element name="pICMSUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_0302"/> * &lt;element name="pICMSInter" type="{http://www.portalfiscal.inf.br/cte}TDec_0302"/> * &lt;element name="vFCPUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vICMSUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vICMSUFIni" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "icms", "vTotTrib", "infAdFisco", "icmsufFim" }) public static class Imp { @XmlElement(name = "ICMS", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TImp icms; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String vTotTrib; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String infAdFisco; @XmlElement(name = "ICMSUFFim", namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.Imp.ICMSUFFim icmsufFim; /** * Obtém o valor da propriedade icms. * * @return * possible object is * {@link TImp } * */ public TImp getICMS() { return icms; } /** * Define o valor da propriedade icms. * * @param value * allowed object is * {@link TImp } * */ public void setICMS(TImp value) { this.icms = value; } /** * Obtém o valor da propriedade vTotTrib. * * @return * possible object is * {@link String } * */ public String getVTotTrib() { return vTotTrib; } /** * Define o valor da propriedade vTotTrib. * * @param value * allowed object is * {@link String } * */ public void setVTotTrib(String value) { this.vTotTrib = value; } /** * Obtém o valor da propriedade infAdFisco. * * @return * possible object is * {@link String } * */ public String getInfAdFisco() { return infAdFisco; } /** * Define o valor da propriedade infAdFisco. * * @param value * allowed object is * {@link String } * */ public void setInfAdFisco(String value) { this.infAdFisco = value; } /** * Obtém o valor da propriedade icmsufFim. * * @return * possible object is * {@link TCTe.InfCte.Imp.ICMSUFFim } * */ public TCTe.InfCte.Imp.ICMSUFFim getICMSUFFim() { return icmsufFim; } /** * Define o valor da propriedade icmsufFim. * * @param value * allowed object is * {@link TCTe.InfCte.Imp.ICMSUFFim } * */ public void setICMSUFFim(TCTe.InfCte.Imp.ICMSUFFim value) { this.icmsufFim = value; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="vBCUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="pFCPUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_0302"/> * &lt;element name="pICMSUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_0302"/> * &lt;element name="pICMSInter" type="{http://www.portalfiscal.inf.br/cte}TDec_0302"/> * &lt;element name="vFCPUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vICMSUFFim" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vICMSUFIni" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "vbcufFim", "pfcpufFim", "picmsufFim", "picmsInter", "vfcpufFim", "vicmsufFim", "vicmsufIni" }) public static class ICMSUFFim { @XmlElement(name = "vBCUFFim", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vbcufFim; @XmlElement(name = "pFCPUFFim", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String pfcpufFim; @XmlElement(name = "pICMSUFFim", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String picmsufFim; @XmlElement(name = "pICMSInter", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String picmsInter; @XmlElement(name = "vFCPUFFim", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vfcpufFim; @XmlElement(name = "vICMSUFFim", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vicmsufFim; @XmlElement(name = "vICMSUFIni", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vicmsufIni; /** * Obtém o valor da propriedade vbcufFim. * * @return * possible object is * {@link String } * */ public String getVBCUFFim() { return vbcufFim; } /** * Define o valor da propriedade vbcufFim. * * @param value * allowed object is * {@link String } * */ public void setVBCUFFim(String value) { this.vbcufFim = value; } /** * Obtém o valor da propriedade pfcpufFim. * * @return * possible object is * {@link String } * */ public String getPFCPUFFim() { return pfcpufFim; } /** * Define o valor da propriedade pfcpufFim. * * @param value * allowed object is * {@link String } * */ public void setPFCPUFFim(String value) { this.pfcpufFim = value; } /** * Obtém o valor da propriedade picmsufFim. * * @return * possible object is * {@link String } * */ public String getPICMSUFFim() { return picmsufFim; } /** * Define o valor da propriedade picmsufFim. * * @param value * allowed object is * {@link String } * */ public void setPICMSUFFim(String value) { this.picmsufFim = value; } /** * Obtém o valor da propriedade picmsInter. * * @return * possible object is * {@link String } * */ public String getPICMSInter() { return picmsInter; } /** * Define o valor da propriedade picmsInter. * * @param value * allowed object is * {@link String } * */ public void setPICMSInter(String value) { this.picmsInter = value; } /** * Obtém o valor da propriedade vfcpufFim. * * @return * possible object is * {@link String } * */ public String getVFCPUFFim() { return vfcpufFim; } /** * Define o valor da propriedade vfcpufFim. * * @param value * allowed object is * {@link String } * */ public void setVFCPUFFim(String value) { this.vfcpufFim = value; } /** * Obtém o valor da propriedade vicmsufFim. * * @return * possible object is * {@link String } * */ public String getVICMSUFFim() { return vicmsufFim; } /** * Define o valor da propriedade vicmsufFim. * * @param value * allowed object is * {@link String } * */ public void setVICMSUFFim(String value) { this.vicmsufFim = value; } /** * Obtém o valor da propriedade vicmsufIni. * * @return * possible object is * {@link String } * */ public String getVICMSUFIni() { return vicmsufIni; } /** * Define o valor da propriedade vicmsufIni. * * @param value * allowed object is * {@link String } * */ public void setVICMSUFIni(String value) { this.vicmsufIni = value; } } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="infCarga"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="vCarga" type="{http://www.portalfiscal.inf.br/cte}TDec_1302" minOccurs="0"/> * &lt;element name="proPred"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xOutCat" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="infQ" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="cUnid"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="00"/> * &lt;enumeration value="01"/> * &lt;enumeration value="02"/> * &lt;enumeration value="03"/> * &lt;enumeration value="04"/> * &lt;enumeration value="05"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpMed"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="qCarga" type="{http://www.portalfiscal.inf.br/cte}TDec_1104"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="vCargaAverb" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infDoc" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="infNF" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nRoma" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nPed" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="mod" type="{http://www.portalfiscal.inf.br/cte}TModNF"/> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;element name="vBC" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vICMS" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vBCST" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vST" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vProd" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vNF" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="nCFOP" type="{http://www.portalfiscal.inf.br/cte}TCfop"/> * &lt;element name="nPeso" type="{http://www.portalfiscal.inf.br/cte}TDec_1203Opc" minOccurs="0"/> * &lt;element name="PIN" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;minLength value="2"/> * &lt;maxLength value="9"/> * &lt;pattern value="[1-9]{1}[0-9]{1,8}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infNFe" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chave" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;element name="PIN" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;minLength value="2"/> * &lt;maxLength value="9"/> * &lt;pattern value="[1-9]{1}[0-9]{1,8}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infOutros" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="00"/> * &lt;enumeration value="10"/> * &lt;enumeration value="59"/> * &lt;enumeration value="65"/> * &lt;enumeration value="99"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="descOutros" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="100"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;element name="vDocFisc" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="docAnt" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="emiDocAnt" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;sequence minOccurs="0"> * &lt;element name="IE" type="{http://www.portalfiscal.inf.br/cte}TIe"/> * &lt;element name="UF" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;/sequence> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="idDocAnt" maxOccurs="2"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;choice> * &lt;element name="idDocAntPap" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TDocAssoc"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="subser" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="idDocAntEle" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTe" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infModal"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;any processContents='skip'/> * &lt;/sequence> * &lt;attribute name="versaoModal" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;pattern value="4\.(0[0-9]|[1-9][0-9])"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="veicNovos" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chassi"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;length value="17"/> * &lt;pattern value="[A-Z0-9]+"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cCor"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xCor"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="40"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cMod"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="6"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="vUnit" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vFrete" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="cobr" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="fat" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nFat" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="vOrig" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="vDesc" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="vLiq" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="dup" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nDup" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dVenc" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;element name="vDup" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infCteSub" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCte"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;pattern value="[0-9]{44}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="indAlteraToma" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;enumeration value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infGlobalizado" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xObs"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="15"/> * &lt;maxLength value="256"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infServVinc" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="infCTeMultimodal" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTeMultimodal" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "infCarga", "infDoc", "docAnt", "infModal", "veicNovos", "cobr", "infCteSub", "infGlobalizado", "infServVinc" }) public static class InfCTeNorm { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TCTe.InfCte.InfCTeNorm.InfCarga infCarga; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.InfCTeNorm.InfDoc infDoc; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.InfCTeNorm.DocAnt docAnt; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TCTe.InfCte.InfCTeNorm.InfModal infModal; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TCTe.InfCte.InfCTeNorm.VeicNovos> veicNovos; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.InfCTeNorm.Cobr cobr; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.InfCTeNorm.InfCteSub infCteSub; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.InfCTeNorm.InfGlobalizado infGlobalizado; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.InfCTeNorm.InfServVinc infServVinc; /** * Obtém o valor da propriedade infCarga. * * @return * possible object is * {@link TCTe.InfCte.InfCTeNorm.InfCarga } * */ public TCTe.InfCte.InfCTeNorm.InfCarga getInfCarga() { return infCarga; } /** * Define o valor da propriedade infCarga. * * @param value * allowed object is * {@link TCTe.InfCte.InfCTeNorm.InfCarga } * */ public void setInfCarga(TCTe.InfCte.InfCTeNorm.InfCarga value) { this.infCarga = value; } /** * Obtém o valor da propriedade infDoc. * * @return * possible object is * {@link TCTe.InfCte.InfCTeNorm.InfDoc } * */ public TCTe.InfCte.InfCTeNorm.InfDoc getInfDoc() { return infDoc; } /** * Define o valor da propriedade infDoc. * * @param value * allowed object is * {@link TCTe.InfCte.InfCTeNorm.InfDoc } * */ public void setInfDoc(TCTe.InfCte.InfCTeNorm.InfDoc value) { this.infDoc = value; } /** * Obtém o valor da propriedade docAnt. * * @return * possible object is * {@link TCTe.InfCte.InfCTeNorm.DocAnt } * */ public TCTe.InfCte.InfCTeNorm.DocAnt getDocAnt() { return docAnt; } /** * Define o valor da propriedade docAnt. * * @param value * allowed object is * {@link TCTe.InfCte.InfCTeNorm.DocAnt } * */ public void setDocAnt(TCTe.InfCte.InfCTeNorm.DocAnt value) { this.docAnt = value; } /** * Obtém o valor da propriedade infModal. * * @return * possible object is * {@link TCTe.InfCte.InfCTeNorm.InfModal } * */ public TCTe.InfCte.InfCTeNorm.InfModal getInfModal() { return infModal; } /** * Define o valor da propriedade infModal. * * @param value * allowed object is * {@link TCTe.InfCte.InfCTeNorm.InfModal } * */ public void setInfModal(TCTe.InfCte.InfCTeNorm.InfModal value) { this.infModal = value; } /** * Gets the value of the veicNovos property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the veicNovos property. * * <p> * For example, to add a new item, do as follows: * <pre> * getVeicNovos().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.InfCTeNorm.VeicNovos } * * */ public List<TCTe.InfCte.InfCTeNorm.VeicNovos> getVeicNovos() { if (veicNovos == null) { veicNovos = new ArrayList<TCTe.InfCte.InfCTeNorm.VeicNovos>(); } return this.veicNovos; } /** * Obtém o valor da propriedade cobr. * * @return * possible object is * {@link TCTe.InfCte.InfCTeNorm.Cobr } * */ public TCTe.InfCte.InfCTeNorm.Cobr getCobr() { return cobr; } /** * Define o valor da propriedade cobr. * * @param value * allowed object is * {@link TCTe.InfCte.InfCTeNorm.Cobr } * */ public void setCobr(TCTe.InfCte.InfCTeNorm.Cobr value) { this.cobr = value; } /** * Obtém o valor da propriedade infCteSub. * * @return * possible object is * {@link TCTe.InfCte.InfCTeNorm.InfCteSub } * */ public TCTe.InfCte.InfCTeNorm.InfCteSub getInfCteSub() { return infCteSub; } /** * Define o valor da propriedade infCteSub. * * @param value * allowed object is * {@link TCTe.InfCte.InfCTeNorm.InfCteSub } * */ public void setInfCteSub(TCTe.InfCte.InfCTeNorm.InfCteSub value) { this.infCteSub = value; } /** * Obtém o valor da propriedade infGlobalizado. * * @return * possible object is * {@link TCTe.InfCte.InfCTeNorm.InfGlobalizado } * */ public TCTe.InfCte.InfCTeNorm.InfGlobalizado getInfGlobalizado() { return infGlobalizado; } /** * Define o valor da propriedade infGlobalizado. * * @param value * allowed object is * {@link TCTe.InfCte.InfCTeNorm.InfGlobalizado } * */ public void setInfGlobalizado(TCTe.InfCte.InfCTeNorm.InfGlobalizado value) { this.infGlobalizado = value; } /** * Obtém o valor da propriedade infServVinc. * * @return * possible object is * {@link TCTe.InfCte.InfCTeNorm.InfServVinc } * */ public TCTe.InfCte.InfCTeNorm.InfServVinc getInfServVinc() { return infServVinc; } /** * Define o valor da propriedade infServVinc. * * @param value * allowed object is * {@link TCTe.InfCte.InfCTeNorm.InfServVinc } * */ public void setInfServVinc(TCTe.InfCte.InfCTeNorm.InfServVinc value) { this.infServVinc = value; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="fat" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nFat" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="vOrig" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="vDesc" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="vLiq" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="dup" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nDup" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dVenc" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;element name="vDup" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "fat", "dup" }) public static class Cobr { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected TCTe.InfCte.InfCTeNorm.Cobr.Fat fat; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TCTe.InfCte.InfCTeNorm.Cobr.Dup> dup; /** * Obtém o valor da propriedade fat. * * @return * possible object is * {@link TCTe.InfCte.InfCTeNorm.Cobr.Fat } * */ public TCTe.InfCte.InfCTeNorm.Cobr.Fat getFat() { return fat; } /** * Define o valor da propriedade fat. * * @param value * allowed object is * {@link TCTe.InfCte.InfCTeNorm.Cobr.Fat } * */ public void setFat(TCTe.InfCte.InfCTeNorm.Cobr.Fat value) { this.fat = value; } /** * Gets the value of the dup property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the dup property. * * <p> * For example, to add a new item, do as follows: * <pre> * getDup().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.InfCTeNorm.Cobr.Dup } * * */ public List<TCTe.InfCte.InfCTeNorm.Cobr.Dup> getDup() { if (dup == null) { dup = new ArrayList<TCTe.InfCte.InfCTeNorm.Cobr.Dup>(); } return this.dup; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nDup" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dVenc" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;element name="vDup" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "nDup", "dVenc", "vDup" }) public static class Dup { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String nDup; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String dVenc; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String vDup; /** * Obtém o valor da propriedade nDup. * * @return * possible object is * {@link String } * */ public String getNDup() { return nDup; } /** * Define o valor da propriedade nDup. * * @param value * allowed object is * {@link String } * */ public void setNDup(String value) { this.nDup = value; } /** * Obtém o valor da propriedade dVenc. * * @return * possible object is * {@link String } * */ public String getDVenc() { return dVenc; } /** * Define o valor da propriedade dVenc. * * @param value * allowed object is * {@link String } * */ public void setDVenc(String value) { this.dVenc = value; } /** * Obtém o valor da propriedade vDup. * * @return * possible object is * {@link String } * */ public String getVDup() { return vDup; } /** * Define o valor da propriedade vDup. * * @param value * allowed object is * {@link String } * */ public void setVDup(String value) { this.vDup = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nFat" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="vOrig" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="vDesc" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="vLiq" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "nFat", "vOrig", "vDesc", "vLiq" }) public static class Fat { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String nFat; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String vOrig; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String vDesc; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String vLiq; /** * Obtém o valor da propriedade nFat. * * @return * possible object is * {@link String } * */ public String getNFat() { return nFat; } /** * Define o valor da propriedade nFat. * * @param value * allowed object is * {@link String } * */ public void setNFat(String value) { this.nFat = value; } /** * Obtém o valor da propriedade vOrig. * * @return * possible object is * {@link String } * */ public String getVOrig() { return vOrig; } /** * Define o valor da propriedade vOrig. * * @param value * allowed object is * {@link String } * */ public void setVOrig(String value) { this.vOrig = value; } /** * Obtém o valor da propriedade vDesc. * * @return * possible object is * {@link String } * */ public String getVDesc() { return vDesc; } /** * Define o valor da propriedade vDesc. * * @param value * allowed object is * {@link String } * */ public void setVDesc(String value) { this.vDesc = value; } /** * Obtém o valor da propriedade vLiq. * * @return * possible object is * {@link String } * */ public String getVLiq() { return vLiq; } /** * Define o valor da propriedade vLiq. * * @param value * allowed object is * {@link String } * */ public void setVLiq(String value) { this.vLiq = value; } } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="emiDocAnt" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;sequence minOccurs="0"> * &lt;element name="IE" type="{http://www.portalfiscal.inf.br/cte}TIe"/> * &lt;element name="UF" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;/sequence> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="idDocAnt" maxOccurs="2"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;choice> * &lt;element name="idDocAntPap" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TDocAssoc"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="subser" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="idDocAntEle" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTe" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "emiDocAnt" }) public static class DocAnt { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected List<TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt> emiDocAnt; /** * Gets the value of the emiDocAnt property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the emiDocAnt property. * * <p> * For example, to add a new item, do as follows: * <pre> * getEmiDocAnt().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt } * * */ public List<TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt> getEmiDocAnt() { if (emiDocAnt == null) { emiDocAnt = new ArrayList<TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt>(); } return this.emiDocAnt; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;sequence minOccurs="0"> * &lt;element name="IE" type="{http://www.portalfiscal.inf.br/cte}TIe"/> * &lt;element name="UF" type="{http://www.portalfiscal.inf.br/cte}TUf"/> * &lt;/sequence> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="idDocAnt" maxOccurs="2"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;choice> * &lt;element name="idDocAntPap" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TDocAssoc"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="subser" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="idDocAntEle" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTe" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "cnpj", "cpf", "ie", "uf", "xNome", "idDocAnt" }) public static class EmiDocAnt { @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/cte") protected String cnpj; @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/cte") protected String cpf; @XmlElement(name = "IE", namespace = "http://www.portalfiscal.inf.br/cte") protected String ie; @XmlElement(name = "UF", namespace = "http://www.portalfiscal.inf.br/cte") @XmlSchemaType(name = "string") protected TUf uf; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xNome; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected List<TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt.IdDocAnt> idDocAnt; /** * Obtém o valor da propriedade cnpj. * * @return * possible object is * {@link String } * */ public String getCNPJ() { return cnpj; } /** * Define o valor da propriedade cnpj. * * @param value * allowed object is * {@link String } * */ public void setCNPJ(String value) { this.cnpj = value; } /** * Obtém o valor da propriedade cpf. * * @return * possible object is * {@link String } * */ public String getCPF() { return cpf; } /** * Define o valor da propriedade cpf. * * @param value * allowed object is * {@link String } * */ public void setCPF(String value) { this.cpf = value; } /** * Obtém o valor da propriedade ie. * * @return * possible object is * {@link String } * */ public String getIE() { return ie; } /** * Define o valor da propriedade ie. * * @param value * allowed object is * {@link String } * */ public void setIE(String value) { this.ie = value; } /** * Obtém o valor da propriedade uf. * * @return * possible object is * {@link TUf } * */ public TUf getUF() { return uf; } /** * Define o valor da propriedade uf. * * @param value * allowed object is * {@link TUf } * */ public void setUF(TUf value) { this.uf = value; } /** * Obtém o valor da propriedade xNome. * * @return * possible object is * {@link String } * */ public String getXNome() { return xNome; } /** * Define o valor da propriedade xNome. * * @param value * allowed object is * {@link String } * */ public void setXNome(String value) { this.xNome = value; } /** * Gets the value of the idDocAnt property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the idDocAnt property. * * <p> * For example, to add a new item, do as follows: * <pre> * getIdDocAnt().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt.IdDocAnt } * * */ public List<TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt.IdDocAnt> getIdDocAnt() { if (idDocAnt == null) { idDocAnt = new ArrayList<TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt.IdDocAnt>(); } return this.idDocAnt; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;choice> * &lt;element name="idDocAntPap" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TDocAssoc"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="subser" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="idDocAntEle" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTe" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "idDocAntPap", "idDocAntEle" }) public static class IdDocAnt { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt.IdDocAnt.IdDocAntPap> idDocAntPap; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt.IdDocAnt.IdDocAntEle> idDocAntEle; /** * Gets the value of the idDocAntPap property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the idDocAntPap property. * * <p> * For example, to add a new item, do as follows: * <pre> * getIdDocAntPap().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt.IdDocAnt.IdDocAntPap } * * */ public List<TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt.IdDocAnt.IdDocAntPap> getIdDocAntPap() { if (idDocAntPap == null) { idDocAntPap = new ArrayList<TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt.IdDocAnt.IdDocAntPap>(); } return this.idDocAntPap; } /** * Gets the value of the idDocAntEle property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the idDocAntEle property. * * <p> * For example, to add a new item, do as follows: * <pre> * getIdDocAntEle().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt.IdDocAnt.IdDocAntEle } * * */ public List<TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt.IdDocAnt.IdDocAntEle> getIdDocAntEle() { if (idDocAntEle == null) { idDocAntEle = new ArrayList<TCTe.InfCte.InfCTeNorm.DocAnt.EmiDocAnt.IdDocAnt.IdDocAntEle>(); } return this.idDocAntEle; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTe" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "chCTe" }) public static class IdDocAntEle { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String chCTe; /** * Obtém o valor da propriedade chCTe. * * @return * possible object is * {@link String } * */ public String getChCTe() { return chCTe; } /** * Define o valor da propriedade chCTe. * * @param value * allowed object is * {@link String } * */ public void setChCTe(String value) { this.chCTe = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TDocAssoc"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="subser" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "tpDoc", "serie", "subser", "nDoc", "dEmi" }) public static class IdDocAntPap { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpDoc; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String serie; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String subser; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String nDoc; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String dEmi; /** * Obtém o valor da propriedade tpDoc. * * @return * possible object is * {@link String } * */ public String getTpDoc() { return tpDoc; } /** * Define o valor da propriedade tpDoc. * * @param value * allowed object is * {@link String } * */ public void setTpDoc(String value) { this.tpDoc = value; } /** * Obtém o valor da propriedade serie. * * @return * possible object is * {@link String } * */ public String getSerie() { return serie; } /** * Define o valor da propriedade serie. * * @param value * allowed object is * {@link String } * */ public void setSerie(String value) { this.serie = value; } /** * Obtém o valor da propriedade subser. * * @return * possible object is * {@link String } * */ public String getSubser() { return subser; } /** * Define o valor da propriedade subser. * * @param value * allowed object is * {@link String } * */ public void setSubser(String value) { this.subser = value; } /** * Obtém o valor da propriedade nDoc. * * @return * possible object is * {@link String } * */ public String getNDoc() { return nDoc; } /** * Define o valor da propriedade nDoc. * * @param value * allowed object is * {@link String } * */ public void setNDoc(String value) { this.nDoc = value; } /** * Obtém o valor da propriedade dEmi. * * @return * possible object is * {@link String } * */ public String getDEmi() { return dEmi; } /** * Define o valor da propriedade dEmi. * * @param value * allowed object is * {@link String } * */ public void setDEmi(String value) { this.dEmi = value; } } } } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="vCarga" type="{http://www.portalfiscal.inf.br/cte}TDec_1302" minOccurs="0"/> * &lt;element name="proPred"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="60"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xOutCat" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="30"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="infQ" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="cUnid"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="00"/> * &lt;enumeration value="01"/> * &lt;enumeration value="02"/> * &lt;enumeration value="03"/> * &lt;enumeration value="04"/> * &lt;enumeration value="05"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpMed"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="qCarga" type="{http://www.portalfiscal.inf.br/cte}TDec_1104"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="vCargaAverb" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "vCarga", "proPred", "xOutCat", "infQ", "vCargaAverb" }) public static class InfCarga { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String vCarga; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String proPred; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xOutCat; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected List<TCTe.InfCte.InfCTeNorm.InfCarga.InfQ> infQ; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String vCargaAverb; /** * Obtém o valor da propriedade vCarga. * * @return * possible object is * {@link String } * */ public String getVCarga() { return vCarga; } /** * Define o valor da propriedade vCarga. * * @param value * allowed object is * {@link String } * */ public void setVCarga(String value) { this.vCarga = value; } /** * Obtém o valor da propriedade proPred. * * @return * possible object is * {@link String } * */ public String getProPred() { return proPred; } /** * Define o valor da propriedade proPred. * * @param value * allowed object is * {@link String } * */ public void setProPred(String value) { this.proPred = value; } /** * Obtém o valor da propriedade xOutCat. * * @return * possible object is * {@link String } * */ public String getXOutCat() { return xOutCat; } /** * Define o valor da propriedade xOutCat. * * @param value * allowed object is * {@link String } * */ public void setXOutCat(String value) { this.xOutCat = value; } /** * Gets the value of the infQ property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the infQ property. * * <p> * For example, to add a new item, do as follows: * <pre> * getInfQ().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.InfCTeNorm.InfCarga.InfQ } * * */ public List<TCTe.InfCte.InfCTeNorm.InfCarga.InfQ> getInfQ() { if (infQ == null) { infQ = new ArrayList<TCTe.InfCte.InfCTeNorm.InfCarga.InfQ>(); } return this.infQ; } /** * Obtém o valor da propriedade vCargaAverb. * * @return * possible object is * {@link String } * */ public String getVCargaAverb() { return vCargaAverb; } /** * Define o valor da propriedade vCargaAverb. * * @param value * allowed object is * {@link String } * */ public void setVCargaAverb(String value) { this.vCargaAverb = value; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="cUnid"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="00"/> * &lt;enumeration value="01"/> * &lt;enumeration value="02"/> * &lt;enumeration value="03"/> * &lt;enumeration value="04"/> * &lt;enumeration value="05"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="tpMed"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="qCarga" type="{http://www.portalfiscal.inf.br/cte}TDec_1104"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "cUnid", "tpMed", "qCarga" }) public static class InfQ { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String cUnid; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpMed; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String qCarga; /** * Obtém o valor da propriedade cUnid. * * @return * possible object is * {@link String } * */ public String getCUnid() { return cUnid; } /** * Define o valor da propriedade cUnid. * * @param value * allowed object is * {@link String } * */ public void setCUnid(String value) { this.cUnid = value; } /** * Obtém o valor da propriedade tpMed. * * @return * possible object is * {@link String } * */ public String getTpMed() { return tpMed; } /** * Define o valor da propriedade tpMed. * * @param value * allowed object is * {@link String } * */ public void setTpMed(String value) { this.tpMed = value; } /** * Obtém o valor da propriedade qCarga. * * @return * possible object is * {@link String } * */ public String getQCarga() { return qCarga; } /** * Define o valor da propriedade qCarga. * * @param value * allowed object is * {@link String } * */ public void setQCarga(String value) { this.qCarga = value; } } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCte"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;pattern value="[0-9]{44}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="indAlteraToma" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;enumeration value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "chCte", "indAlteraToma" }) public static class InfCteSub { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String chCte; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String indAlteraToma; /** * Obtém o valor da propriedade chCte. * * @return * possible object is * {@link String } * */ public String getChCte() { return chCte; } /** * Define o valor da propriedade chCte. * * @param value * allowed object is * {@link String } * */ public void setChCte(String value) { this.chCte = value; } /** * Obtém o valor da propriedade indAlteraToma. * * @return * possible object is * {@link String } * */ public String getIndAlteraToma() { return indAlteraToma; } /** * Define o valor da propriedade indAlteraToma. * * @param value * allowed object is * {@link String } * */ public void setIndAlteraToma(String value) { this.indAlteraToma = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="infNF" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nRoma" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nPed" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="mod" type="{http://www.portalfiscal.inf.br/cte}TModNF"/> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;element name="vBC" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vICMS" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vBCST" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vST" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vProd" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vNF" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="nCFOP" type="{http://www.portalfiscal.inf.br/cte}TCfop"/> * &lt;element name="nPeso" type="{http://www.portalfiscal.inf.br/cte}TDec_1203Opc" minOccurs="0"/> * &lt;element name="PIN" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;minLength value="2"/> * &lt;maxLength value="9"/> * &lt;pattern value="[1-9]{1}[0-9]{1,8}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infNFe" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chave" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;element name="PIN" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;minLength value="2"/> * &lt;maxLength value="9"/> * &lt;pattern value="[1-9]{1}[0-9]{1,8}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="infOutros" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="00"/> * &lt;enumeration value="10"/> * &lt;enumeration value="59"/> * &lt;enumeration value="65"/> * &lt;enumeration value="99"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="descOutros" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="100"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;element name="vDocFisc" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "infNF", "infNFe", "infOutros" }) public static class InfDoc { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TCTe.InfCte.InfCTeNorm.InfDoc.InfNF> infNF; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TCTe.InfCte.InfCTeNorm.InfDoc.InfNFe> infNFe; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TCTe.InfCte.InfCTeNorm.InfDoc.InfOutros> infOutros; /** * Gets the value of the infNF property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the infNF property. * * <p> * For example, to add a new item, do as follows: * <pre> * getInfNF().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.InfCTeNorm.InfDoc.InfNF } * * */ public List<TCTe.InfCte.InfCTeNorm.InfDoc.InfNF> getInfNF() { if (infNF == null) { infNF = new ArrayList<TCTe.InfCte.InfCTeNorm.InfDoc.InfNF>(); } return this.infNF; } /** * Gets the value of the infNFe property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the infNFe property. * * <p> * For example, to add a new item, do as follows: * <pre> * getInfNFe().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.InfCTeNorm.InfDoc.InfNFe } * * */ public List<TCTe.InfCte.InfCTeNorm.InfDoc.InfNFe> getInfNFe() { if (infNFe == null) { infNFe = new ArrayList<TCTe.InfCte.InfCTeNorm.InfDoc.InfNFe>(); } return this.infNFe; } /** * Gets the value of the infOutros property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the infOutros property. * * <p> * For example, to add a new item, do as follows: * <pre> * getInfOutros().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.InfCTeNorm.InfDoc.InfOutros } * * */ public List<TCTe.InfCte.InfCTeNorm.InfDoc.InfOutros> getInfOutros() { if (infOutros == null) { infOutros = new ArrayList<TCTe.InfCte.InfCTeNorm.InfDoc.InfOutros>(); } return this.infOutros; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="nRoma" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nPed" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="mod" type="{http://www.portalfiscal.inf.br/cte}TModNF"/> * &lt;element name="serie"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="3"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData"/> * &lt;element name="vBC" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vICMS" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vBCST" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vST" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vProd" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vNF" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="nCFOP" type="{http://www.portalfiscal.inf.br/cte}TCfop"/> * &lt;element name="nPeso" type="{http://www.portalfiscal.inf.br/cte}TDec_1203Opc" minOccurs="0"/> * &lt;element name="PIN" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;minLength value="2"/> * &lt;maxLength value="9"/> * &lt;pattern value="[1-9]{1}[0-9]{1,8}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "nRoma", "nPed", "mod", "serie", "nDoc", "dEmi", "vbc", "vicms", "vbcst", "vst", "vProd", "vnf", "ncfop", "nPeso", "pin", "dPrev", "infUnidCarga", "infUnidTransp" }) public static class InfNF { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String nRoma; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String nPed; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String mod; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String serie; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String nDoc; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String dEmi; @XmlElement(name = "vBC", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vbc; @XmlElement(name = "vICMS", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vicms; @XmlElement(name = "vBCST", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vbcst; @XmlElement(name = "vST", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vst; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vProd; @XmlElement(name = "vNF", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vnf; @XmlElement(name = "nCFOP", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String ncfop; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String nPeso; @XmlElement(name = "PIN", namespace = "http://www.portalfiscal.inf.br/cte") protected String pin; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String dPrev; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TUnidCarga> infUnidCarga; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TUnidadeTransp> infUnidTransp; /** * Obtém o valor da propriedade nRoma. * * @return * possible object is * {@link String } * */ public String getNRoma() { return nRoma; } /** * Define o valor da propriedade nRoma. * * @param value * allowed object is * {@link String } * */ public void setNRoma(String value) { this.nRoma = value; } /** * Obtém o valor da propriedade nPed. * * @return * possible object is * {@link String } * */ public String getNPed() { return nPed; } /** * Define o valor da propriedade nPed. * * @param value * allowed object is * {@link String } * */ public void setNPed(String value) { this.nPed = value; } /** * Obtém o valor da propriedade mod. * * @return * possible object is * {@link String } * */ public String getMod() { return mod; } /** * Define o valor da propriedade mod. * * @param value * allowed object is * {@link String } * */ public void setMod(String value) { this.mod = value; } /** * Obtém o valor da propriedade serie. * * @return * possible object is * {@link String } * */ public String getSerie() { return serie; } /** * Define o valor da propriedade serie. * * @param value * allowed object is * {@link String } * */ public void setSerie(String value) { this.serie = value; } /** * Obtém o valor da propriedade nDoc. * * @return * possible object is * {@link String } * */ public String getNDoc() { return nDoc; } /** * Define o valor da propriedade nDoc. * * @param value * allowed object is * {@link String } * */ public void setNDoc(String value) { this.nDoc = value; } /** * Obtém o valor da propriedade dEmi. * * @return * possible object is * {@link String } * */ public String getDEmi() { return dEmi; } /** * Define o valor da propriedade dEmi. * * @param value * allowed object is * {@link String } * */ public void setDEmi(String value) { this.dEmi = value; } /** * Obtém o valor da propriedade vbc. * * @return * possible object is * {@link String } * */ public String getVBC() { return vbc; } /** * Define o valor da propriedade vbc. * * @param value * allowed object is * {@link String } * */ public void setVBC(String value) { this.vbc = value; } /** * Obtém o valor da propriedade vicms. * * @return * possible object is * {@link String } * */ public String getVICMS() { return vicms; } /** * Define o valor da propriedade vicms. * * @param value * allowed object is * {@link String } * */ public void setVICMS(String value) { this.vicms = value; } /** * Obtém o valor da propriedade vbcst. * * @return * possible object is * {@link String } * */ public String getVBCST() { return vbcst; } /** * Define o valor da propriedade vbcst. * * @param value * allowed object is * {@link String } * */ public void setVBCST(String value) { this.vbcst = value; } /** * Obtém o valor da propriedade vst. * * @return * possible object is * {@link String } * */ public String getVST() { return vst; } /** * Define o valor da propriedade vst. * * @param value * allowed object is * {@link String } * */ public void setVST(String value) { this.vst = value; } /** * Obtém o valor da propriedade vProd. * * @return * possible object is * {@link String } * */ public String getVProd() { return vProd; } /** * Define o valor da propriedade vProd. * * @param value * allowed object is * {@link String } * */ public void setVProd(String value) { this.vProd = value; } /** * Obtém o valor da propriedade vnf. * * @return * possible object is * {@link String } * */ public String getVNF() { return vnf; } /** * Define o valor da propriedade vnf. * * @param value * allowed object is * {@link String } * */ public void setVNF(String value) { this.vnf = value; } /** * Obtém o valor da propriedade ncfop. * * @return * possible object is * {@link String } * */ public String getNCFOP() { return ncfop; } /** * Define o valor da propriedade ncfop. * * @param value * allowed object is * {@link String } * */ public void setNCFOP(String value) { this.ncfop = value; } /** * Obtém o valor da propriedade nPeso. * * @return * possible object is * {@link String } * */ public String getNPeso() { return nPeso; } /** * Define o valor da propriedade nPeso. * * @param value * allowed object is * {@link String } * */ public void setNPeso(String value) { this.nPeso = value; } /** * Obtém o valor da propriedade pin. * * @return * possible object is * {@link String } * */ public String getPIN() { return pin; } /** * Define o valor da propriedade pin. * * @param value * allowed object is * {@link String } * */ public void setPIN(String value) { this.pin = value; } /** * Obtém o valor da propriedade dPrev. * * @return * possible object is * {@link String } * */ public String getDPrev() { return dPrev; } /** * Define o valor da propriedade dPrev. * * @param value * allowed object is * {@link String } * */ public void setDPrev(String value) { this.dPrev = value; } /** * Gets the value of the infUnidCarga property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the infUnidCarga property. * * <p> * For example, to add a new item, do as follows: * <pre> * getInfUnidCarga().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TUnidCarga } * * */ public List<TUnidCarga> getInfUnidCarga() { if (infUnidCarga == null) { infUnidCarga = new ArrayList<TUnidCarga>(); } return this.infUnidCarga; } /** * Gets the value of the infUnidTransp property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the infUnidTransp property. * * <p> * For example, to add a new item, do as follows: * <pre> * getInfUnidTransp().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TUnidadeTransp } * * */ public List<TUnidadeTransp> getInfUnidTransp() { if (infUnidTransp == null) { infUnidTransp = new ArrayList<TUnidadeTransp>(); } return this.infUnidTransp; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chave" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;element name="PIN" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;minLength value="2"/> * &lt;maxLength value="9"/> * &lt;pattern value="[1-9]{1}[0-9]{1,8}"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "chave", "pin", "dPrev", "infUnidCarga", "infUnidTransp" }) public static class InfNFe { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String chave; @XmlElement(name = "PIN", namespace = "http://www.portalfiscal.inf.br/cte") protected String pin; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String dPrev; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TUnidCarga> infUnidCarga; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TUnidadeTransp> infUnidTransp; /** * Obtém o valor da propriedade chave. * * @return * possible object is * {@link String } * */ public String getChave() { return chave; } /** * Define o valor da propriedade chave. * * @param value * allowed object is * {@link String } * */ public void setChave(String value) { this.chave = value; } /** * Obtém o valor da propriedade pin. * * @return * possible object is * {@link String } * */ public String getPIN() { return pin; } /** * Define o valor da propriedade pin. * * @param value * allowed object is * {@link String } * */ public void setPIN(String value) { this.pin = value; } /** * Obtém o valor da propriedade dPrev. * * @return * possible object is * {@link String } * */ public String getDPrev() { return dPrev; } /** * Define o valor da propriedade dPrev. * * @param value * allowed object is * {@link String } * */ public void setDPrev(String value) { this.dPrev = value; } /** * Gets the value of the infUnidCarga property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the infUnidCarga property. * * <p> * For example, to add a new item, do as follows: * <pre> * getInfUnidCarga().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TUnidCarga } * * */ public List<TUnidCarga> getInfUnidCarga() { if (infUnidCarga == null) { infUnidCarga = new ArrayList<TUnidCarga>(); } return this.infUnidCarga; } /** * Gets the value of the infUnidTransp property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the infUnidTransp property. * * <p> * For example, to add a new item, do as follows: * <pre> * getInfUnidTransp().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TUnidadeTransp } * * */ public List<TUnidadeTransp> getInfUnidTransp() { if (infUnidTransp == null) { infUnidTransp = new ArrayList<TUnidadeTransp>(); } return this.infUnidTransp; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tpDoc"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;enumeration value="00"/> * &lt;enumeration value="10"/> * &lt;enumeration value="59"/> * &lt;enumeration value="65"/> * &lt;enumeration value="99"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="descOutros" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="100"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="nDoc" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="20"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="dEmi" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;element name="vDocFisc" type="{http://www.portalfiscal.inf.br/cte}TDec_1302Opc" minOccurs="0"/> * &lt;element name="dPrev" type="{http://www.portalfiscal.inf.br/cte}TData" minOccurs="0"/> * &lt;choice> * &lt;element name="infUnidCarga" type="{http://www.portalfiscal.inf.br/cte}TUnidCarga" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="infUnidTransp" type="{http://www.portalfiscal.inf.br/cte}TUnidadeTransp" maxOccurs="unbounded" minOccurs="0"/> * &lt;/choice> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "tpDoc", "descOutros", "nDoc", "dEmi", "vDocFisc", "dPrev", "infUnidCarga", "infUnidTransp" }) public static class InfOutros { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String tpDoc; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String descOutros; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String nDoc; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String dEmi; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String vDocFisc; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String dPrev; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TUnidCarga> infUnidCarga; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected List<TUnidadeTransp> infUnidTransp; /** * Obtém o valor da propriedade tpDoc. * * @return * possible object is * {@link String } * */ public String getTpDoc() { return tpDoc; } /** * Define o valor da propriedade tpDoc. * * @param value * allowed object is * {@link String } * */ public void setTpDoc(String value) { this.tpDoc = value; } /** * Obtém o valor da propriedade descOutros. * * @return * possible object is * {@link String } * */ public String getDescOutros() { return descOutros; } /** * Define o valor da propriedade descOutros. * * @param value * allowed object is * {@link String } * */ public void setDescOutros(String value) { this.descOutros = value; } /** * Obtém o valor da propriedade nDoc. * * @return * possible object is * {@link String } * */ public String getNDoc() { return nDoc; } /** * Define o valor da propriedade nDoc. * * @param value * allowed object is * {@link String } * */ public void setNDoc(String value) { this.nDoc = value; } /** * Obtém o valor da propriedade dEmi. * * @return * possible object is * {@link String } * */ public String getDEmi() { return dEmi; } /** * Define o valor da propriedade dEmi. * * @param value * allowed object is * {@link String } * */ public void setDEmi(String value) { this.dEmi = value; } /** * Obtém o valor da propriedade vDocFisc. * * @return * possible object is * {@link String } * */ public String getVDocFisc() { return vDocFisc; } /** * Define o valor da propriedade vDocFisc. * * @param value * allowed object is * {@link String } * */ public void setVDocFisc(String value) { this.vDocFisc = value; } /** * Obtém o valor da propriedade dPrev. * * @return * possible object is * {@link String } * */ public String getDPrev() { return dPrev; } /** * Define o valor da propriedade dPrev. * * @param value * allowed object is * {@link String } * */ public void setDPrev(String value) { this.dPrev = value; } /** * Gets the value of the infUnidCarga property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the infUnidCarga property. * * <p> * For example, to add a new item, do as follows: * <pre> * getInfUnidCarga().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TUnidCarga } * * */ public List<TUnidCarga> getInfUnidCarga() { if (infUnidCarga == null) { infUnidCarga = new ArrayList<TUnidCarga>(); } return this.infUnidCarga; } /** * Gets the value of the infUnidTransp property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the infUnidTransp property. * * <p> * For example, to add a new item, do as follows: * <pre> * getInfUnidTransp().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TUnidadeTransp } * * */ public List<TUnidadeTransp> getInfUnidTransp() { if (infUnidTransp == null) { infUnidTransp = new ArrayList<TUnidadeTransp>(); } return this.infUnidTransp; } } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xObs"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="15"/> * &lt;maxLength value="256"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "xObs" }) public static class InfGlobalizado { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xObs; /** * Obtém o valor da propriedade xObs. * * @return * possible object is * {@link String } * */ public String getXObs() { return xObs; } /** * Define o valor da propriedade xObs. * * @param value * allowed object is * {@link String } * */ public void setXObs(String value) { this.xObs = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;any processContents='skip'/> * &lt;/sequence> * &lt;attribute name="versaoModal" use="required"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;pattern value="4\.(0[0-9]|[1-9][0-9])"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/attribute> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "any" }) public static class InfModal { @XmlAnyElement protected Element any; @XmlAttribute(name = "versaoModal", required = true) protected String versaoModal; /** * Obtém o valor da propriedade any. * * @return * possible object is * {@link Element } * */ public Element getAny() { return any; } /** * Define o valor da propriedade any. * * @param value * allowed object is * {@link Element } * */ public void setAny(Element value) { this.any = value; } /** * Obtém o valor da propriedade versaoModal. * * @return * possible object is * {@link String } * */ public String getVersaoModal() { return versaoModal; } /** * Define o valor da propriedade versaoModal. * * @param value * allowed object is * {@link String } * */ public void setVersaoModal(String value) { this.versaoModal = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="infCTeMultimodal" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTeMultimodal" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "infCTeMultimodal" }) public static class InfServVinc { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected List<TCTe.InfCte.InfCTeNorm.InfServVinc.InfCTeMultimodal> infCTeMultimodal; /** * Gets the value of the infCTeMultimodal property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the infCTeMultimodal property. * * <p> * For example, to add a new item, do as follows: * <pre> * getInfCTeMultimodal().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.InfCTeNorm.InfServVinc.InfCTeMultimodal } * * */ public List<TCTe.InfCte.InfCTeNorm.InfServVinc.InfCTeMultimodal> getInfCTeMultimodal() { if (infCTeMultimodal == null) { infCTeMultimodal = new ArrayList<TCTe.InfCte.InfCTeNorm.InfServVinc.InfCTeMultimodal>(); } return this.infCTeMultimodal; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTeMultimodal" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "chCTeMultimodal" }) public static class InfCTeMultimodal { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String chCTeMultimodal; /** * Obtém o valor da propriedade chCTeMultimodal. * * @return * possible object is * {@link String } * */ public String getChCTeMultimodal() { return chCTeMultimodal; } /** * Define o valor da propriedade chCTeMultimodal. * * @param value * allowed object is * {@link String } * */ public void setChCTeMultimodal(String value) { this.chCTeMultimodal = value; } } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chassi"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;whiteSpace value="preserve"/> * &lt;length value="17"/> * &lt;pattern value="[A-Z0-9]+"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cCor"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="4"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xCor"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="40"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="cMod"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="1"/> * &lt;maxLength value="6"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="vUnit" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vFrete" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "chassi", "cCor", "xCor", "cMod", "vUnit", "vFrete" }) public static class VeicNovos { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String chassi; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String cCor; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xCor; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String cMod; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vUnit; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vFrete; /** * Obtém o valor da propriedade chassi. * * @return * possible object is * {@link String } * */ public String getChassi() { return chassi; } /** * Define o valor da propriedade chassi. * * @param value * allowed object is * {@link String } * */ public void setChassi(String value) { this.chassi = value; } /** * Obtém o valor da propriedade cCor. * * @return * possible object is * {@link String } * */ public String getCCor() { return cCor; } /** * Define o valor da propriedade cCor. * * @param value * allowed object is * {@link String } * */ public void setCCor(String value) { this.cCor = value; } /** * Obtém o valor da propriedade xCor. * * @return * possible object is * {@link String } * */ public String getXCor() { return xCor; } /** * Define o valor da propriedade xCor. * * @param value * allowed object is * {@link String } * */ public void setXCor(String value) { this.xCor = value; } /** * Obtém o valor da propriedade cMod. * * @return * possible object is * {@link String } * */ public String getCMod() { return cMod; } /** * Define o valor da propriedade cMod. * * @param value * allowed object is * {@link String } * */ public void setCMod(String value) { this.cMod = value; } /** * Obtém o valor da propriedade vUnit. * * @return * possible object is * {@link String } * */ public String getVUnit() { return vUnit; } /** * Define o valor da propriedade vUnit. * * @param value * allowed object is * {@link String } * */ public void setVUnit(String value) { this.vUnit = value; } /** * Obtém o valor da propriedade vFrete. * * @return * possible object is * {@link String } * */ public String getVFrete() { return vFrete; } /** * Define o valor da propriedade vFrete. * * @param value * allowed object is * {@link String } * */ public void setVFrete(String value) { this.vFrete = value; } } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="chCTe" type="{http://www.portalfiscal.inf.br/cte}TChDFe"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "chCTe" }) public static class InfCteComp { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String chCTe; /** * Obtém o valor da propriedade chCTe. * * @return * possible object is * {@link String } * */ public String getChCTe() { return chCTe; } /** * Define o valor da propriedade chCTe. * * @param value * allowed object is * {@link String } * */ public void setChCTe(String value) { this.chCTe = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="CNPJPAA" type="{http://www.portalfiscal.inf.br/cte}TCnpj"/> * &lt;element name="PAASignature"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="SignatureValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> * &lt;element name="RSAKeyValue" type="{http://www.portalfiscal.inf.br/cte}TRSAKeyValueType"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "cnpjpaa", "paaSignature" }) public static class InfPAA { @XmlElement(name = "CNPJPAA", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String cnpjpaa; @XmlElement(name = "PAASignature", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TCTe.InfCte.InfPAA.PAASignature paaSignature; /** * Obtém o valor da propriedade cnpjpaa. * * @return * possible object is * {@link String } * */ public String getCNPJPAA() { return cnpjpaa; } /** * Define o valor da propriedade cnpjpaa. * * @param value * allowed object is * {@link String } * */ public void setCNPJPAA(String value) { this.cnpjpaa = value; } /** * Obtém o valor da propriedade paaSignature. * * @return * possible object is * {@link TCTe.InfCte.InfPAA.PAASignature } * */ public TCTe.InfCte.InfPAA.PAASignature getPAASignature() { return paaSignature; } /** * Define o valor da propriedade paaSignature. * * @param value * allowed object is * {@link TCTe.InfCte.InfPAA.PAASignature } * */ public void setPAASignature(TCTe.InfCte.InfPAA.PAASignature value) { this.paaSignature = value; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="SignatureValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> * &lt;element name="RSAKeyValue" type="{http://www.portalfiscal.inf.br/cte}TRSAKeyValueType"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "signatureValue", "rsaKeyValue" }) public static class PAASignature { @XmlElement(name = "SignatureValue", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected byte[] signatureValue; @XmlElement(name = "RSAKeyValue", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TRSAKeyValueType rsaKeyValue; /** * Obtém o valor da propriedade signatureValue. * * @return * possible object is * byte[] */ public byte[] getSignatureValue() { return signatureValue; } /** * Define o valor da propriedade signatureValue. * * @param value * allowed object is * byte[] */ public void setSignatureValue(byte[] value) { this.signatureValue = value; } /** * Obtém o valor da propriedade rsaKeyValue. * * @return * possible object is * {@link TRSAKeyValueType } * */ public TRSAKeyValueType getRSAKeyValue() { return rsaKeyValue; } /** * Define o valor da propriedade rsaKeyValue. * * @param value * allowed object is * {@link TRSAKeyValueType } * */ public void setRSAKeyValue(TRSAKeyValueType value) { this.rsaKeyValue = value; } } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xSolic"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;minLength value="2"/> * &lt;maxLength value="2000"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "xSolic" }) public static class InfSolicNFF { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xSolic; /** * Obtém o valor da propriedade xSolic. * * @return * possible object is * {@link String } * */ public String getXSolic() { return xSolic; } /** * Define o valor da propriedade xSolic. * * @param value * allowed object is * {@link String } * */ public void setXSolic(String value) { this.xSolic = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="enderReceb" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" type="{http://www.portalfiscal.inf.br/cte}TEmail" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "cnpj", "cpf", "ie", "xNome", "fone", "enderReceb", "email" }) public static class Receb { @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/cte") protected String cnpj; @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/cte") protected String cpf; @XmlElement(name = "IE", namespace = "http://www.portalfiscal.inf.br/cte") protected String ie; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xNome; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String fone; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TEndereco enderReceb; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String email; /** * Obtém o valor da propriedade cnpj. * * @return * possible object is * {@link String } * */ public String getCNPJ() { return cnpj; } /** * Define o valor da propriedade cnpj. * * @param value * allowed object is * {@link String } * */ public void setCNPJ(String value) { this.cnpj = value; } /** * Obtém o valor da propriedade cpf. * * @return * possible object is * {@link String } * */ public String getCPF() { return cpf; } /** * Define o valor da propriedade cpf. * * @param value * allowed object is * {@link String } * */ public void setCPF(String value) { this.cpf = value; } /** * Obtém o valor da propriedade ie. * * @return * possible object is * {@link String } * */ public String getIE() { return ie; } /** * Define o valor da propriedade ie. * * @param value * allowed object is * {@link String } * */ public void setIE(String value) { this.ie = value; } /** * Obtém o valor da propriedade xNome. * * @return * possible object is * {@link String } * */ public String getXNome() { return xNome; } /** * Define o valor da propriedade xNome. * * @param value * allowed object is * {@link String } * */ public void setXNome(String value) { this.xNome = value; } /** * Obtém o valor da propriedade fone. * * @return * possible object is * {@link String } * */ public String getFone() { return fone; } /** * Define o valor da propriedade fone. * * @param value * allowed object is * {@link String } * */ public void setFone(String value) { this.fone = value; } /** * Obtém o valor da propriedade enderReceb. * * @return * possible object is * {@link TEndereco } * */ public TEndereco getEnderReceb() { return enderReceb; } /** * Define o valor da propriedade enderReceb. * * @param value * allowed object is * {@link TEndereco } * */ public void setEnderReceb(TEndereco value) { this.enderReceb = value; } /** * Obtém o valor da propriedade email. * * @return * possible object is * {@link String } * */ public String getEmail() { return email; } /** * Define o valor da propriedade email. * * @param value * allowed object is * {@link String } * */ public void setEmail(String value) { this.email = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice> * &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/cte}TCnpjOpc"/> * &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/cte}TCpf"/> * &lt;/choice> * &lt;element name="IE" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TIeDest"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="xFant" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="60"/> * &lt;minLength value="2"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="fone" type="{http://www.portalfiscal.inf.br/cte}TFone" minOccurs="0"/> * &lt;element name="enderReme" type="{http://www.portalfiscal.inf.br/cte}TEndereco"/> * &lt;element name="email" minOccurs="0"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TEmail"> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "cnpj", "cpf", "ie", "xNome", "xFant", "fone", "enderReme", "email" }) public static class Rem { @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/cte") protected String cnpj; @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/cte") protected String cpf; @XmlElement(name = "IE", namespace = "http://www.portalfiscal.inf.br/cte") protected String ie; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xNome; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String xFant; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String fone; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected TEndereco enderReme; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte") protected String email; /** * Obtém o valor da propriedade cnpj. * * @return * possible object is * {@link String } * */ public String getCNPJ() { return cnpj; } /** * Define o valor da propriedade cnpj. * * @param value * allowed object is * {@link String } * */ public void setCNPJ(String value) { this.cnpj = value; } /** * Obtém o valor da propriedade cpf. * * @return * possible object is * {@link String } * */ public String getCPF() { return cpf; } /** * Define o valor da propriedade cpf. * * @param value * allowed object is * {@link String } * */ public void setCPF(String value) { this.cpf = value; } /** * Obtém o valor da propriedade ie. * * @return * possible object is * {@link String } * */ public String getIE() { return ie; } /** * Define o valor da propriedade ie. * * @param value * allowed object is * {@link String } * */ public void setIE(String value) { this.ie = value; } /** * Obtém o valor da propriedade xNome. * * @return * possible object is * {@link String } * */ public String getXNome() { return xNome; } /** * Define o valor da propriedade xNome. * * @param value * allowed object is * {@link String } * */ public void setXNome(String value) { this.xNome = value; } /** * Obtém o valor da propriedade xFant. * * @return * possible object is * {@link String } * */ public String getXFant() { return xFant; } /** * Define o valor da propriedade xFant. * * @param value * allowed object is * {@link String } * */ public void setXFant(String value) { this.xFant = value; } /** * Obtém o valor da propriedade fone. * * @return * possible object is * {@link String } * */ public String getFone() { return fone; } /** * Define o valor da propriedade fone. * * @param value * allowed object is * {@link String } * */ public void setFone(String value) { this.fone = value; } /** * Obtém o valor da propriedade enderReme. * * @return * possible object is * {@link TEndereco } * */ public TEndereco getEnderReme() { return enderReme; } /** * Define o valor da propriedade enderReme. * * @param value * allowed object is * {@link TEndereco } * */ public void setEnderReme(TEndereco value) { this.enderReme = value; } /** * Obtém o valor da propriedade email. * * @return * possible object is * {@link String } * */ public String getEmail() { return email; } /** * Define o valor da propriedade email. * * @param value * allowed object is * {@link String } * */ public void setEmail(String value) { this.email = value; } } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="vTPrest" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="vRec" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;element name="Comp" maxOccurs="unbounded" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="15"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="vComp" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "vtPrest", "vRec", "comp" }) public static class VPrest { @XmlElement(name = "vTPrest", namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vtPrest; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vRec; @XmlElement(name = "Comp", namespace = "http://www.portalfiscal.inf.br/cte") protected List<TCTe.InfCte.VPrest.Comp> comp; /** * Obtém o valor da propriedade vtPrest. * * @return * possible object is * {@link String } * */ public String getVTPrest() { return vtPrest; } /** * Define o valor da propriedade vtPrest. * * @param value * allowed object is * {@link String } * */ public void setVTPrest(String value) { this.vtPrest = value; } /** * Obtém o valor da propriedade vRec. * * @return * possible object is * {@link String } * */ public String getVRec() { return vRec; } /** * Define o valor da propriedade vRec. * * @param value * allowed object is * {@link String } * */ public void setVRec(String value) { this.vRec = value; } /** * Gets the value of the comp property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the comp property. * * <p> * For example, to add a new item, do as follows: * <pre> * getComp().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TCTe.InfCte.VPrest.Comp } * * */ public List<TCTe.InfCte.VPrest.Comp> getComp() { if (comp == null) { comp = new ArrayList<TCTe.InfCte.VPrest.Comp>(); } return this.comp; } /** * <p>Classe Java de anonymous complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="xNome"> * &lt;simpleType> * &lt;restriction base="{http://www.portalfiscal.inf.br/cte}TString"> * &lt;maxLength value="15"/> * &lt;minLength value="1"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="vComp" type="{http://www.portalfiscal.inf.br/cte}TDec_1302"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "xNome", "vComp" }) public static class Comp { @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String xNome; @XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true) protected String vComp; /** * Obtém o valor da propriedade xNome. * * @return * possible object is * {@link String } * */ public String getXNome() { return xNome; } /** * Define o valor da propriedade xNome. * * @param value * allowed object is * {@link String } * */ public void setXNome(String value) { this.xNome = value; } /** * Obtém o valor da propriedade vComp. * * @return * possible object is * {@link String } * */ public String getVComp() { return vComp; } /** * Define o valor da propriedade vComp. * * @param value * allowed object is * {@link String } * */ public void setVComp(String value) { this.vComp = value; } } } } }