id
stringlengths 36
36
| text
stringlengths 1
1.25M
|
---|---|
2437337f-f6b7-4431-8d11-13ede8f080b7
|
public void setCustomInteger15(crmondemand.xml.customobject3.query.QueryType customInteger15) {
this.customInteger15 = customInteger15;
}
|
2843ba00-c489-49f5-a389-fe26bbcdda25
|
public java.lang.String getSolutionId() {
return this.solutionId;
}
|
272d23b3-3821-42a7-87c5-cdfb92a0df91
|
public void setCustomPickList72(crmondemand.xml.customobject6.query.QueryType customPickList72) {
this.customPickList72 = customPickList72;
}
|
f300d258-e813-4a4c-ae6b-8bdb1988c879
|
public crmondemand.xml.contact.query.QueryType getCustomBoolean11() {
return this.customBoolean11;
}
|
195f0aa1-8319-472c-8863-37a399972b9b
|
public String getPictureType() {
return pictureType;
}
|
126ddb3f-8823-4e12-b0e5-ad95bcc03e0c
|
public void setCustomBoolean27(crmondemand.xml.contact.query.QueryType customBoolean27) {
this.customBoolean27 = customBoolean27;
}
|
159afed9-3467-4aeb-817b-5008173039bf
|
public void setCustomObject12Type(java.lang.String customObject12Type) {
this.customObject12Type = customObject12Type;
}
|
10322132-6390-4341-aa20-804464428846
|
public crmondemand.xml.contact.query.QueryType getCustomBoolean0() {
return this.customBoolean0;
}
|
c54f0140-ec04-4723-b137-c78b50b2bdf7
|
public void setCustomNumber55(java.math.BigDecimal customNumber55) {
this.customNumber55 = customNumber55;
}
|
c32d64e1-3c1b-4b0b-af84-99c43af0b251
|
public void setCustomInteger0(java.lang.Integer customInteger0) {
this.customInteger0 = customInteger0;
}
|
16a9b5f9-ca93-48cd-95d6-08b779ec825a
|
public crmondemand.xml.customobject6.query.QueryType getCustomBoolean33() {
return this.customBoolean33;
}
|
6fba9abc-4289-40fe-bc17-33d49ac716b2
|
public crmondemand.xml.contact.query.QueryType getCustomCurrency2() {
return this.customCurrency2;
}
|
4d8acc0e-ea1d-4ccf-b856-86d6a1876417
|
public java.math.BigDecimal getCustomCurrency22() {
return this.customCurrency22;
}
|
8319f254-91e1-43a4-a68a-95b09e1c0489
|
public java.lang.Boolean getCustomBoolean19() {
return this.customBoolean19;
}
|
83c32419-b83f-4549-959a-8bdb76d03bb8
|
public void setCustomPickList9(java.lang.String customPickList9) {
this.customPickList9 = customPickList9;
}
|
565ccb73-2112-45f4-8c2e-44c65da20979
|
public crmondemand.xml.customobject6.query.QueryType getCustomObject6Name() {
return this.customObject6Name;
}
|
ed0a6769-bdb5-413a-9194-777a72d59019
|
public java.lang.String getCustomPickList56() {
return this.customPickList56;
}
|
8bc326b7-4caf-4d16-a12e-e8b6b85449ed
|
public void setCustomBoolean22(crmondemand.xml.customobject6.query.QueryType customBoolean22) {
this.customBoolean22 = customBoolean22;
}
|
fe86eae3-f999-410e-ba4c-97d5830baf0a
|
public void setCustomDate46(java.util.Calendar customDate46) {
this.customDate46 = customDate46;
}
|
f8a2c83c-43ac-4b56-a301-9f0d20f0c136
|
public java.lang.Integer getCustomInteger5() {
return this.customInteger5;
}
|
9674b217-5424-4583-ac1a-59b4bba466a4
|
public crmondemand.xml.customobject6.query.QueryType getCurrentInvestmentMix() {
return this.currentInvestmentMix;
}
|
422afd8c-7331-4f23-9177-597bf2a68bc5
|
public crmondemand.xml.contact.query.QueryType getCustomNumber51() {
return this.customNumber51;
}
|
96ea0ae5-3660-4b18-abe3-f490f3dee011
|
public static void OBRADI_izraz_naredba(boolean dodajNaStog){
String linija = mParser.ParsirajNovuLiniju();
UniformniZnak uz = UniformniZnak.SigurnoStvaranje(linija);
if (uz != null && uz.mNaziv.equals("TOCKAZAREZ")){
if (dodajNaStog){
mIspisivac.DodajKod("MOVE %D 1 R0");
mIspisivac.DodajKod("PUSH R0");
Ime_Velicina_Adresa novi = new Ime_Velicina_Adresa();
novi.mIme = null;
novi.mAdresa = false;
novi.mVelicina = 4;
NaredbenaStrukturaPrograma_G.mStog.add(novi);
}
return;
}
if (linija.equals("<izraz>")){
Izrazi_G.OBRADI_izraz(dodajNaStog);
linija = mParser.ParsirajNovuLiniju(); // ucitaj TOCKAZAREZ
return;
}
}
|
5376c6f9-9034-4659-ac77-0a7def7890cc
|
public static Stella_Object walkCallSlotTree(Cons tree, Object [] MV_returnarray) {
{ Stella_Object slotname = tree.value;
Stella_Object walkedfirstarg = null;
StandardObject firstargtype = Stella.SGT_STELLA_VOID;
Stella_Class firstargclass = null;
boolean illegalfirstargP = false;
int previouserrors = ((Integer)(Stella.$TRANSLATIONERRORS$.get())).intValue();
Slot slot = null;
if (slotname == Stella.SYM_STELLA_ERROR) {
Native.setBooleanSpecial(Stella.$FOUNDRETURNp$, true);
}
slot = Symbol.lookupFunction(((Symbol)(slotname)));
if (slot != null) {
if (((BooleanWrapper)(KeyValueList.dynamicSlotValue(((MethodSlot)(slot)).dynamicSlots, Stella.SYM_STELLA_METHOD_MACROp, Stella.FALSE_WRAPPER))).wrapperValue) {
return (Cons.walkMacroTree(tree, MV_returnarray));
}
else {
firstargtype = MethodSlot.walkFirstArgumentToFunction(((MethodSlot)(slot)), tree);
}
}
else {
if (!(tree.rest == Stella.NIL)) {
{ Object [] caller_MV_returnarray = new Object[1];
walkedfirstarg = Stella_Object.walkExpressionTree(tree.rest.value, Stella.SGT_STELLA_UNKNOWN, ((Symbol)(slotname)), true, caller_MV_returnarray);
firstargtype = ((StandardObject)(caller_MV_returnarray[0]));
}
tree.secondSetter(Stella_Object.coerceATree(walkedfirstarg, firstargtype, firstargtype, new Object[1]));
if (StandardObject.voidP(firstargtype)) {
{ Object old$PrintreadablyP$000 = Stella.$PRINTREADABLYp$.get();
try {
Native.setBooleanSpecial(Stella.$PRINTREADABLYp$, true);
Stella.signalTranslationError();
if (!(Stella.suppressWarningsP())) {
Stella.printErrorContext(">> ERROR: ", Stella.STANDARD_ERROR);
{
Stella.STANDARD_ERROR.nativeStream.println();
Stella.STANDARD_ERROR.nativeStream.println(" First argument in call to `" + Stella_Object.deUglifyParseTree(slotname) + "' returns @VOID.");
}
;
}
} finally {
Stella.$PRINTREADABLYp$.set(old$PrintreadablyP$000);
}
}
return (Stella_Object.walkDontCallMeTree(tree, Stella.SGT_STELLA_UNKNOWN, MV_returnarray));
}
firstargclass = StandardObject.typeSpecToClass(firstargtype);
slot = Stella_Class.lookupSlot(firstargclass, ((Symbol)(slotname)));
}
}
illegalfirstargP = ((Integer)(Stella.$TRANSLATIONERRORS$.get())).intValue() > previouserrors;
if (Stella_Object.vrletExpressionP(tree.rest.value)) {
return (Cons.percolateOutVrletExpression(tree, ((Cons)(tree.rest.value)), Stella.SGT_STELLA_UNKNOWN, MV_returnarray));
}
if ((slot == null) &&
StandardObject.subTypeSpecOfP(firstargtype, Stella.SGT_STELLA_ARGUMENT_LIST)) {
slot = Stella_Class.lookupSlot(((Stella_Class)(Stella.SGT_STELLA_CONS.surrogateValue)), ((Symbol)(slotname)));
}
if (slot == null) {
if (Stella.warnAboutUndefinedMethodsP() &&
((!(firstargtype == Stella.SGT_STELLA_UNKNOWN)) &&
((firstargclass != null) &&
firstargclass.abstractP))) {
return (Cons.walkSlotOnAbstractTypeTree(tree, StandardObject.typeSpecToBaseType(firstargtype), MV_returnarray));
}
else {
{ Cons value000 = null;
Surrogate value001 = null;
{ Object [] caller_MV_returnarray = new Object[1];
value000 = Cons.walkUndefinedSlotTree(tree, (StandardObject.voidP(firstargtype) ? Stella.SGT_STELLA_UNKNOWN : ((StandardObject)(firstargtype))), (!illegalfirstargP) &&
Stella.warnAboutUndefinedMethodsP(), caller_MV_returnarray);
value001 = ((Surrogate)(caller_MV_returnarray[0]));
}
{ Stella_Object _return_temp = value000;
MV_returnarray[0] = value001;
return (_return_temp);
}
}
}
}
{ int minargs = slot.methodArgumentCount();
int maxargs = minargs;
if (Surrogate.subtypeOfMethodSlotP(Stella_Object.safePrimaryType(slot))) {
{ MethodSlot slot000 = ((MethodSlot)(slot));
if (((BooleanWrapper)(KeyValueList.dynamicSlotValue(slot000.dynamicSlots, Stella.SYM_STELLA_METHOD_VARIABLE_ARGUMENTSp, Stella.FALSE_WRAPPER))).wrapperValue ||
((BooleanWrapper)(KeyValueList.dynamicSlotValue(slot000.dynamicSlots, Stella.SYM_STELLA_METHOD_BODY_ARGUMENTp, Stella.FALSE_WRAPPER))).wrapperValue) {
minargs = minargs - 1;
maxargs = Stella.NULL_INTEGER;
}
}
}
else {
}
if (Cons.badArgumentRangeP(tree, minargs, maxargs)) {
return (Stella_Object.walkDontCallMeTree(tree, Stella.SGT_STELLA_UNKNOWN, MV_returnarray));
}
}
{ Stella_Object otree = null;
StandardObject otype = null;
if (StandardObject.subTypeSpecOfP(firstargtype, Stella.SGT_STELLA_ARGUMENT_LIST)) {
{ Object [] caller_MV_returnarray = new Object[1];
otree = Slot.finishWalkingArgumentListTree(slot, tree, firstargtype, caller_MV_returnarray);
otype = ((StandardObject)(caller_MV_returnarray[0]));
}
}
else {
{ Object [] caller_MV_returnarray = new Object[1];
otree = slot.finishWalkingCallSlotTree(tree, firstargtype, caller_MV_returnarray);
otype = ((StandardObject)(caller_MV_returnarray[0]));
}
}
return (Slot.sysTreeIfNeeded(slot, otree, firstargtype, otype, MV_returnarray));
}
}
}
|
14a61f91-4767-4ece-a8ab-c1498c0ba016
|
public void setCustomInteger4(crmondemand.xml.opportunity.query.QueryType customInteger4) {
this.customInteger4 = customInteger4;
}
|
ed70d693-5dfd-41ac-b3f8-29401124af4c
|
public void addCellAdress(String adress) {
if (cellesAdress == null)
cellesAdress = new ArrayList<String>();
cellesAdress.add(adress);
}
|
5bc3d0df-d3bb-4926-a4c7-c2a9fb5ca981
|
public void setCustomPickList37(java.lang.String customPickList37) {
this.customPickList37 = customPickList37;
}
|
b420aaec-1d37-46d3-b059-ebfc65ffcfd7
|
public void setCustomDate47(java.util.Calendar customDate47) {
this.customDate47 = customDate47;
}
|
5a3dc0ed-8b4b-40de-9da5-9f9ee23bae48
|
public void setSampleLotCutoffDate(java.lang.String sampleLotCutoffDate) {
this.sampleLotCutoffDate = sampleLotCutoffDate;
}
|
8ce53ef6-8bc0-4b73-9b92-1d2c731b7050
|
public void setCustomDate35(java.util.Calendar customDate35) {
this.customDate35 = customDate35;
}
|
fe1da45c-1aee-4d39-b35c-f912508a3520
|
public crmondemand.xml.opportunity.query.QueryType getCreatedByEMailAddr() {
return this.createdByEMailAddr;
}
|
acedc095-6de4-4e91-b1a9-2a693245ff29
|
public void handler() {
ROM_REGION(0x10000, REGION_CPU1);/* 64k for code */
ROM_LOAD("galmidw.u", 0x0000, 0x0800, 0x745e2d61);
ROM_LOAD("galmidw.v", 0x0800, 0x0800, 0x9c999a40);
ROM_LOAD("galmidw.w", 0x1000, 0x0800, 0xb5894925);
ROM_LOAD("galmidw.y", 0x1800, 0x0800, 0x6b3ca10b);
ROM_LOAD("galmidw.z", 0x2000, 0x0800, 0xcb24f797);
ROM_REGION(0x1000, REGION_GFX1 | REGIONFLAG_DISPOSE);
ROM_LOAD("galmidw.1j", 0x0000, 0x0800, 0x84decf98);
ROM_LOAD("galmidw.1k", 0x0800, 0x0800, 0xc31ada9e);
ROM_REGION(0x0020, REGION_PROMS);
ROM_LOAD("galaxian.clr", 0x0000, 0x0020, 0xc3ac9467);
ROM_END();
}
|
c01b1113-f6f0-48f8-be45-2721c8699048
|
public crmondemand.xml.customobject6.query.QueryType getCustomPhone2() {
return this.customPhone2;
}
|
2587abc2-b10a-4470-af40-d747640fded1
|
public void setCustomBoolean10(java.lang.Boolean customBoolean10) {
this.customBoolean10 = customBoolean10;
}
|
9dea0d68-8e15-4e6c-9554-078ed16c7b7f
|
public void setTerritoryId(crmondemand.xml.opportunity.query.QueryType territoryId) {
this.territoryId = territoryId;
}
|
e8a70f68-3d96-4a84-8c77-88ff1ee11c9c
|
static RomLoadPtr rom_aliensu = new RomLoadPtr(){ public void handler(){
ROM_REGION( 0x38000, REGION_CPU1 );/* code + banked roms */
ROM_LOAD( "e24_n02.bin", 0x10000, 0x08000, 0x24dd612e );
ROM_CONTINUE( 0x08000, 0x08000 );
ROM_LOAD( "c24_n01.bin", 0x18000, 0x20000, 0x106cf59c );
ROM_REGION( 0x10000, REGION_CPU2 );/* 64k for the sound CPU */
ROM_LOAD( "g04_b03.bin", 0x00000, 0x08000, 0x1ac4d283 );
ROM_REGION( 0x200000, REGION_GFX1 );/* graphics */
ROM_LOAD( "k13_b11.bin", 0x000000, 0x80000, 0x89c5c885 );/* characters (set 1) */
ROM_LOAD( "j13_b07.bin", 0x080000, 0x40000, 0xe9c56d66 );/* characters (set 2) */
/* second half empty */
ROM_LOAD( "k19_b12.bin", 0x100000, 0x80000, 0xea6bdc17 );/* characters (set 1) */
ROM_LOAD( "j19_b08.bin", 0x180000, 0x40000, 0xf9387966 );/* characters (set 2) */
/* second half empty */
ROM_REGION( 0x200000, REGION_GFX2 );/* graphics */
ROM_LOAD( "k08_b10.bin", 0x000000, 0x80000, 0x0b1035b1 );/* sprites (set 1) */
ROM_LOAD( "j08_b06.bin", 0x080000, 0x40000, 0x081a0566 );/* sprites (set 2) */
/* second half empty */
ROM_LOAD( "k02_b09.bin", 0x100000, 0x80000, 0xe76b3c19 );/* sprites (set 1) */
ROM_LOAD( "j02_b05.bin", 0x180000, 0x40000, 0x19a261f2 );/* sprites (set 2) */
/* second half empty */
ROM_REGION( 0x0100, REGION_PROMS );
ROM_LOAD( "821a08.h14", 0x0000, 0x0100, 0x7da55800 );/* priority encoder (not used) */
ROM_REGION( 0x40000, REGION_SOUND1 );/* samples for 007232 */
ROM_LOAD( "875b04.bin", 0x00000, 0x40000, 0x4e209ac8 );
ROM_END(); }}
|
80cbdb05-2416-41a9-af8e-fb83f7c2c84f
|
public crmondemand.xml.contact.query.QueryType getCustomText23() {
return this.customText23;
}
|
a9c17033-c79e-4f1b-8fe7-8981816883f5
|
public void setInvtPeriodEndDate(java.util.Calendar invtPeriodEndDate)
{
this.invtPeriodEndDate = invtPeriodEndDate;
}
|
d5a16e8a-2f91-4f62-86fe-1813a0377d9b
|
public void setCustomText72(crmondemand.xml.customobject3.query.QueryType customText72) {
this.customText72 = customText72;
}
|
8de13000-1b11-42da-b14d-92ee0b5de7a8
|
public void setCustomObject12Id(java.lang.String customObject12Id) {
this.customObject12Id = customObject12Id;
}
|
cc1ac801-39f1-4967-b95a-f154238d99cd
|
public java.lang.String getCustomPickList63() {
return this.customPickList63;
}
|
419d5bef-fdc0-427d-867e-8e24950d682f
|
public java.lang.String getCustomObject3Id() {
return this.customObject3Id;
}
|
77691688-0ec1-4636-a866-8662fb594526
|
public void setCustomPickList49(java.lang.String customPickList49) {
this.customPickList49 = customPickList49;
}
|
ac8d4da9-ed92-45e7-9d0c-34302ae8bf22
|
public void setCustomNumber44(java.math.BigDecimal customNumber44) {
this.customNumber44 = customNumber44;
}
|
e9bb66e2-d4ad-4d47-a2f2-8255f9229645
|
public java.lang.String getCustomObject9IntegrationId() {
return this.customObject9IntegrationId;
}
|
2f66db84-0fd6-409e-9f2c-ab8655a9e259
|
public void setCustomDate16(crmondemand.xml.customobject6.query.QueryType customDate16) {
this.customDate16 = customDate16;
}
|
af848bf2-4733-4377-90d6-27ad4031cea0
|
public java.lang.String getCustomText20() {
return this.customText20;
}
|
de508040-7fc4-4973-ad56-4e143c4323a8
|
public void setCustomPickList90(java.lang.String customPickList90) {
this.customPickList90 = customPickList90;
}
|
f0918fa6-88e0-4d54-871e-197fe4ebf5b6
|
@Override
public void keyPressed(KeyEvent arg0) {
// TODO Auto-generated method stub
}
|
ce02c5b6-40c4-4229-950f-85564549af9d
|
public crmondemand.xml.customobject3.query.QueryType getCustomText83() {
return this.customText83;
}
|
35918610-8ab6-4810-9528-e88396ab52e0
|
public void setCustomText86(crmondemand.xml.customobject6.query.QueryType customText86) {
this.customText86 = customText86;
}
|
4f60a4b3-5b5d-4be1-8b7e-96cf018afd5e
|
public void setCustomPickList87(java.lang.String customPickList87) {
this.customPickList87 = customPickList87;
}
|
8051dbf7-8ff2-4769-a642-1cfbe96a0d76
|
public void setCustomText73(crmondemand.xml.opportunity.query.QueryType customText73) {
this.customText73 = customText73;
}
|
73ab9fbf-2512-4046-a8cb-998b4e3ea8ae
|
public void setContactFullName(java.lang.String contactFullName) {
this.contactFullName = contactFullName;
}
|
138a147b-8f53-408a-8ba9-d6c5d670bf0c
|
public void setCustomText39(java.lang.String customText39) {
this.customText39 = customText39;
}
|
37ffbd76-9d73-4f14-8f66-0dc9eb24dd85
|
public void setCustomNumber18(java.math.BigDecimal customNumber18) {
this.customNumber18 = customNumber18;
}
|
6a6b54fa-fe91-44f7-9879-95d4622e8216
|
private void writeToError(String message){
errorList.add(message + "\n");
}
|
52ca7d9e-9d5a-4fd0-8bf4-f92a9e33f846
|
public int[] readAllInts() {
String[] fields = readAllStrings();
int[] vals = new int[fields.length];
for (int i = 0; i < fields.length; i++)
vals[i] = Integer.parseInt(fields[i]);
return vals;
}
|
5a4d8770-7e13-473e-a2f5-d2f0b4d79627
|
private final void method3803(int i) {
aFloat7824
= -aFloat7786 + (float) (anInt7814 - ((OpenGlToolkit) this).anInt7813);
anInt7639++;
((OpenGlToolkit) this).aFloat7792
= aFloat7824 - aFloat7857 * (float) ((OpenGlToolkit) this).anInt7782;
if ((float) ((OpenGlToolkit) this).anInt7826 > ((OpenGlToolkit) this).aFloat7792)
((OpenGlToolkit) this).aFloat7792 = (float) ((OpenGlToolkit) this).anInt7826;
OpenGL.glFogf(2915, ((OpenGlToolkit) this).aFloat7792);
OpenGL.glFogf(2916, aFloat7824);
DummyInputstream.aFloatArray84[0]
= ((float) Class139.bitAnd(i, ((OpenGlToolkit) this).anInt7856)
/ 1.671168E7F);
DummyInputstream.aFloatArray84[1]
= ((float) Class139.bitAnd(((OpenGlToolkit) this).anInt7856, 65280)
/ 65280.0F);
DummyInputstream.aFloatArray84[2]
= ((float) Class139.bitAnd(((OpenGlToolkit) this).anInt7856, 255)
/ 255.0F);
OpenGL.glFogfv(2918, DummyInputstream.aFloatArray84, 0);
}
|
e462e365-5929-46b1-8fff-c6578d4a7807
|
public void setPolicyExpirationDate(crmondemand.xml.customobject3.query.QueryType policyExpirationDate) {
this.policyExpirationDate = policyExpirationDate;
}
|
e726b9b5-152a-4986-9484-a351dafa2f36
|
public void setZCustomInteger0(java.lang.Integer zCustomInteger0) {
this.zCustomInteger0 = zCustomInteger0;
}
|
e01d6692-604b-4fae-9c50-0c72df89d912
|
public java.lang.String getCandidateId() {
return this.candidateId;
}
|
a2a7e60f-6f22-4784-9eb4-52fd71f0d6ea
|
public void setCertficationCertificationNum(crmondemand.xml.contact.query.QueryType certficationCertificationNum) {
this.certficationCertificationNum = certficationCertificationNum;
}
|
40bb2111-2747-427d-96d4-a1f5d197fff6
|
public void showSkaia() {
try {
c.getSession().write(CField.MapEff("phantom/skaia"));
Thread.sleep(8000);
} catch (InterruptedException e) {
}
NPCScriptManager.getInstance().start(c.getPlayer().getClient(), 1104201, "PTtutor500_3");
}
|
07a3dfb4-5c3c-4463-b4cb-47de256dc525
|
public void test_atTime_LocalTime_null() {
LocalDate t = LocalDate.of(2008, 6, 30);
t.atTime((LocalTime) null);
}
// -------------------------------------------------------------------------
@Test(groups = { "tck" }
|
f5daf1bc-2582-44b5-8674-e5a912785c2a
|
public void setCustomPickList9(crmondemand.xml.contact.query.QueryType customPickList9) {
this.customPickList9 = customPickList9;
}
|
4c99f498-9a24-4bdc-9a24-a336c1d9af14
|
public java.lang.String getFundRequestName() {
return this.fundRequestName;
}
|
af804e3a-f091-433e-82c9-29c7ac309d51
|
public void setCustomMultiSelectPickList1(crmondemand.xml.opportunity.query.QueryType customMultiSelectPickList1) {
this.customMultiSelectPickList1 = customMultiSelectPickList1;
}
|
12dfe873-7ad9-40e7-ba72-4b66eb599d0d
|
public void setCustomText52(crmondemand.xml.opportunity.query.QueryType customText52) {
this.customText52 = customText52;
}
|
35de489a-a869-4f90-b63f-f316eb8f5e25
|
public java.lang.String getAccreditationName() {
return this.accreditationName;
}
|
c5befddb-a9ea-4da7-be6f-0bc6d70687eb
|
public void setTitle(String title) {
this.title = title;
}
|
67e61656-eaed-45ab-b41e-a9961bdc7861
|
@Override
protected void prender() {
for(int i = 0; i < (int)(sonicMax/sonicBlockQuantity); i++){
glPushMatrix();
{
glTranslatef(game.comp.getDisplay().getCamera().getX()+(i*sonicSpace)+(i*sonicSize.width)+sonicOffset.x, game.comp.getDisplay().getCamera().getFovY()-sonicSize.height-sonicOffset.y+game.comp.getDisplay().getCamera().getY(), 0);
if(i < (int) (sonicMax/sonicBlockQuantity)-2 && i != 0)
sonicPowerCenterTexture.bind();
if(i == 0 && sonicPower < sonicBlockQuantity)
sonicDepleteLeftTexture.bind();
if(i == 0 && sonicPower>0)
sonicPowerLeftTexture.bind();
if(i != 0 && i>(int) (sonicPower/sonicBlockQuantity))
sonicDepleteCenterTexture.bind();
if(i == (int)(sonicMax/sonicBlockQuantity)-1 && sonicPower != sonicMax)
sonicDepleteRightTexture.bind();
if(i == (int) (sonicPower/sonicBlockQuantity)-1 && i == (int)(sonicMax/sonicBlockQuantity)-1 )
sonicPowerRightTexture.bind();
glBegin(GL_QUADS);
{
glTexCoord2f(0,0); glVertex2d(-(sonicSize.width/2), 0);
glTexCoord2f(0,1); glVertex2d((sonicSize.width/2), 0);
glTexCoord2f(1,1); glVertex2d((sonicSize.width/2), sonicSize.height);
glTexCoord2f(1,0); glVertex2d(-(sonicSize.width/2), sonicSize.height);
}
glEnd();
}
glPopMatrix();
}
}
|
9c94649f-ea9e-4441-bcde-b9d19bae776a
|
public java.lang.String getCustomText30() {
return this.customText30;
}
|
2aaf6d76-9318-4049-8157-f95337522df0
|
public crmondemand.xml.opportunity.query.QueryType getCustomPickList45() {
return this.customPickList45;
}
|
5d7327c5-96a9-4816-a321-e2079765e5ad
|
public crmondemand.xml.customobject6.query.QueryType getCustomPickList27() {
return this.customPickList27;
}
|
f95ee6b2-ab85-4e1d-ac02-91ed1fef2f97
|
public crmondemand.xml.opportunity.query.QueryType getTransactionExternalSystemId() {
return this.transactionExternalSystemId;
}
|
4748c1a8-fa7c-4ece-973e-e1d0fb1d8c74
|
public FrameMessage getDefaultInstanceForType() {
return defaultInstance;
}
|
5cfbc1ee-a7cb-4b29-ba97-668b11e4ee42
|
public void handler() {
CLR_NZC();
konami.cc |= (B() & CC_C);
B(B() & 0x80 | B() >> 1);
SET_NZ8(B());
if (konamilog != null) {
fprintf(konamilog, "konami#%d asrb :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\n", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);
}
}
|
789b2b53-465f-426f-bd56-69234f6e4ab3
|
public void setCustomPickList31(java.lang.String customPickList31) {
this.customPickList31 = customPickList31;
}
|
d0a65606-cf93-46a2-8d42-566b69d246fd
|
public java.lang.String getActivityStatus() {
return this.activityStatus;
}
|
b2e26300-12f0-45a6-a833-fe5ada51ad14
|
public java.math.BigDecimal getCustomCurrency13() {
return this.customCurrency13;
}
|
43400188-ba8a-40aa-a6f4-c098ab601e78
|
public crmondemand.xml.customobject6.query.QueryType getCustomNumber25() {
return this.customNumber25;
}
|
73920e65-df27-4ff4-b1d3-e956dec2a03f
|
public int fromDepth()
{
return(source.lastDepth());
}
|
3276e655-613b-4aca-8d56-6ed90bf474a0
|
public java.lang.Integer getCustomInteger10() {
return this.customInteger10;
}
|
d0574d32-37f4-4a2d-809d-000c6b246612
|
public void setCurrencyCode(crmondemand.xml.customobject3.query.QueryType currencyCode) {
this.currencyCode = currencyCode;
}
|
94fd8671-d502-44ba-9246-adc3d35fd4c0
|
public void setSampleLotDateCutOff(java.util.Calendar sampleLotDateCutOff) {
this.sampleLotDateCutOff = sampleLotDateCutOff;
}
|
58280b4b-8382-4b7f-9ff6-660dbfcfbd75
|
public void setCustomDate14(crmondemand.xml.customobject6.query.QueryType customDate14) {
this.customDate14 = customDate14;
}
|
61f7a2d5-9aa2-43a4-907e-2529c03fcf34
|
public boolean delete(double x, double y) {
return delete(new Point(x,y));
}
|
0d1cdfdf-85af-4480-a36e-b889d6670e03
|
public static void createChallenge(Connection con, int challenged_user, int challenged_by, int quiz_id) throws SQLException {
String created_on = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
.format(Calendar.getInstance().getTime());
PreparedStatement pStmt = con
.prepareStatement("INSERT INTO challenges VALUES (NULL, ?, ?, ?, ?)");
pStmt.setInt(1, challenged_user);
pStmt.setInt(2, challenged_by);
pStmt.setInt(3, quiz_id);
pStmt.setString(4, created_on);
pStmt.executeUpdate();
}
|
1037512c-9cdf-43b2-a156-36edd90896d5
|
public crmondemand.xml.customobject3.query.QueryType getCustomPhone1() {
return this.customPhone1;
}
|
74d2cb8b-f9ec-468d-9a08-22d8787f9c11
|
public crmondemand.xml.customobject6.query.QueryType getCustomCurrency18() {
return this.customCurrency18;
}
|
d8500ef9-a7e1-469a-97c1-02e0ce116693
|
public void setCustomText44(java.lang.String customText44) {
this.customText44 = customText44;
}
|
f3d24284-444d-49e8-9bed-362cf8c279dd
|
public java.lang.Integer getCustomInteger25() {
return this.customInteger25;
}
|
85527263-82c8-4c67-a237-08c2da25cd24
|
public void setCustomInteger12(java.lang.Integer customInteger12) {
this.customInteger12 = customInteger12;
}
|
02059b8e-3f7b-40d3-bafd-aa4d087c6e56
|
public void setCustomInteger8(java.lang.Integer customInteger8) {
this.customInteger8 = customInteger8;
}
|
513d1ebc-ed0b-4c43-91c4-5e603f18fd52
|
public crmondemand.xml.customobject3.query.QueryType getCustomText59() {
return this.customText59;
}
|
469d4181-7ab6-4b97-a7b1-9f7ca45e9427
|
public List<String> getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getCourseInventory();
}
}
public void getCourse(String courseNumber, org.apache.thrift.async.AsyncMethodCallback<getCourse_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
getCourse_call method_call = new getCourse_call(courseNumber, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getCourse_call extends org.apache.thrift.async.TAsyncMethodCall {
private String courseNumber;
public getCourse_call(String courseNumber, org.apache.thrift.async.AsyncMethodCallback<getCourse_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.courseNumber = courseNumber;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCourse", org.apache.thrift.protocol.TMessageType.CALL, 0));
getCourse_args args = new getCourse_args();
args.setCourseNumber(courseNumber);
args.write(prot);
prot.writeMessageEnd();
}
public Course getResult() throws CourseNotFound, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getCourse();
}
}
public void addCourse(Course course, org.apache.thrift.async.AsyncMethodCallback<addCourse_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
addCourse_call method_call = new addCourse_call(course, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class addCourse_call extends org.apache.thrift.async.TAsyncMethodCall {
private Course course;
public addCourse_call(Course course, org.apache.thrift.async.AsyncMethodCallback<addCourse_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.course = course;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addCourse", org.apache.thrift.protocol.TMessageType.CALL, 0));
addCourse_args args = new addCourse_args();
args.setCourse(course);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws UnacceptableCourse, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_addCourse();
}
}
public void deleteCourse(String courseNumber, org.apache.thrift.async.AsyncMethodCallback<deleteCourse_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
deleteCourse_call method_call = new deleteCourse_call(courseNumber, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class deleteCourse_call extends org.apache.thrift.async.TAsyncMethodCall {
private String courseNumber;
public deleteCourse_call(String courseNumber, org.apache.thrift.async.AsyncMethodCallback<deleteCourse_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.courseNumber = courseNumber;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteCourse", org.apache.thrift.protocol.TMessageType.CALL, 0));
deleteCourse_args args = new deleteCourse_args();
args.setCourseNumber(courseNumber);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws CourseNotFound, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_deleteCourse();
}
}
}
public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
public Processor(I iface) {
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
}
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
super(iface, getProcessMap(processMap));
}
private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
processMap.put("getCourseInventory", new getCourseInventory());
processMap.put("getCourse", new getCourse());
processMap.put("addCourse", new addCourse());
processMap.put("deleteCourse", new deleteCourse());
return processMap;
}
public static class getCourseInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCourseInventory_args> {
public getCourseInventory() {
super("getCourseInventory");
}
public getCourseInventory_args getEmptyArgsInstance() {
return new getCourseInventory_args();
}
protected boolean isOneway() {
return false;
}
public getCourseInventory_result getResult(I iface, getCourseInventory_args args) throws org.apache.thrift.TException {
getCourseInventory_result result = new getCourseInventory_result();
result.success = iface.getCourseInventory();
return result;
}
}
public static class getCourse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCourse_args> {
public getCourse() {
super("getCourse");
}
public getCourse_args getEmptyArgsInstance() {
return new getCourse_args();
}
protected boolean isOneway() {
return false;
}
public getCourse_result getResult(I iface, getCourse_args args) throws org.apache.thrift.TException {
getCourse_result result = new getCourse_result();
try {
result.success = iface.getCourse(args.courseNumber);
} catch (CourseNotFound cnf) {
result.cnf = cnf;
}
return result;
}
}
public static class addCourse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addCourse_args> {
public addCourse() {
super("addCourse");
}
public addCourse_args getEmptyArgsInstance() {
return new addCourse_args();
}
protected boolean isOneway() {
return false;
}
public addCourse_result getResult(I iface, addCourse_args args) throws org.apache.thrift.TException {
addCourse_result result = new addCourse_result();
try {
iface.addCourse(args.course);
} catch (UnacceptableCourse uc) {
result.uc = uc;
}
return result;
}
}
public static class deleteCourse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteCourse_args> {
public deleteCourse() {
super("deleteCourse");
}
public deleteCourse_args getEmptyArgsInstance() {
return new deleteCourse_args();
}
protected boolean isOneway() {
return false;
}
public deleteCourse_result getResult(I iface, deleteCourse_args args) throws org.apache.thrift.TException {
deleteCourse_result result = new deleteCourse_result();
try {
iface.deleteCourse(args.courseNumber);
} catch (CourseNotFound cnf) {
result.cnf = cnf;
}
return result;
}
}
}
public static class getCourseInventory_args implements org.apache.thrift.TBase<getCourseInventory_args, getCourseInventory_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCourseInventory_args");
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getCourseInventory_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getCourseInventory_argsTupleSchemeFactory());
}
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCourseInventory_args.class, metaDataMap);
}
public getCourseInventory_args() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public getCourseInventory_args(getCourseInventory_args other) {
}
public getCourseInventory_args deepCopy() {
return new getCourseInventory_args(this);
}
@Override
public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof getCourseInventory_args)
return this.equals((getCourseInventory_args)that);
return false;
}
public boolean equals(getCourseInventory_args that) {
if (that == null)
return false;
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(getCourseInventory_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
getCourseInventory_args typedOther = (getCourseInventory_args)other;
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("getCourseInventory_args(");
boolean first = true;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class getCourseInventory_argsStandardSchemeFactory implements SchemeFactory {
public getCourseInventory_argsStandardScheme getScheme() {
return new getCourseInventory_argsStandardScheme();
}
}
private static class getCourseInventory_argsStandardScheme extends StandardScheme<getCourseInventory_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, getCourseInventory_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, getCourseInventory_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class getCourseInventory_argsTupleSchemeFactory implements SchemeFactory {
public getCourseInventory_argsTupleScheme getScheme() {
return new getCourseInventory_argsTupleScheme();
}
}
private static class getCourseInventory_argsTupleScheme extends TupleScheme<getCourseInventory_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getCourseInventory_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getCourseInventory_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
}
}
}
public static class getCourseInventory_result implements org.apache.thrift.TBase<getCourseInventory_result, getCourseInventory_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCourseInventory_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getCourseInventory_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getCourseInventory_resultTupleSchemeFactory());
}
public List<String> success; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCourseInventory_result.class, metaDataMap);
}
public getCourseInventory_result() {
}
public getCourseInventory_result(
List<String> success)
{
this();
this.success = success;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public getCourseInventory_result(getCourseInventory_result other) {
if (other.isSetSuccess()) {
List<String> __this__success = new ArrayList<String>();
for (String other_element : other.success) {
__this__success.add(other_element);
}
this.success = __this__success;
}
}
public getCourseInventory_result deepCopy() {
return new getCourseInventory_result(this);
}
@Override
public void clear() {
this.success = null;
}
public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
public java.util.Iterator<String> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(String elem) {
if (this.success == null) {
this.success = new ArrayList<String>();
}
this.success.add(elem);
}
public List<String> getSuccess() {
return this.success;
}
public getCourseInventory_result setSuccess(List<String> success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((List<String>)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof getCourseInventory_result)
return this.equals((getCourseInventory_result)that);
return false;
}
public boolean equals(getCourseInventory_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(getCourseInventory_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
getCourseInventory_result typedOther = (getCourseInventory_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("getCourseInventory_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class getCourseInventory_resultStandardSchemeFactory implements SchemeFactory {
public getCourseInventory_resultStandardScheme getScheme() {
return new getCourseInventory_resultStandardScheme();
}
}
private static class getCourseInventory_resultStandardScheme extends StandardScheme<getCourseInventory_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, getCourseInventory_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
struct.success = new ArrayList<String>(_list16.size);
for (int _i17 = 0; _i17 < _list16.size; ++_i17)
{
String _elem18; // required
_elem18 = iprot.readString();
struct.success.add(_elem18);
}
iprot.readListEnd();
}
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, getCourseInventory_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
for (String _iter19 : struct.success)
{
oprot.writeString(_iter19);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class getCourseInventory_resultTupleSchemeFactory implements SchemeFactory {
public getCourseInventory_resultTupleScheme getScheme() {
return new getCourseInventory_resultTupleScheme();
}
}
private static class getCourseInventory_resultTupleScheme extends TupleScheme<getCourseInventory_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getCourseInventory_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
for (String _iter20 : struct.success)
{
oprot.writeString(_iter20);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getCourseInventory_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.success = new ArrayList<String>(_list21.size);
for (int _i22 = 0; _i22 < _list21.size; ++_i22)
{
String _elem23; // required
_elem23 = iprot.readString();
struct.success.add(_elem23);
}
}
struct.setSuccessIsSet(true);
}
}
}
}
public static class getCourse_args implements org.apache.thrift.TBase<getCourse_args, getCourse_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCourse_args");
private static final org.apache.thrift.protocol.TField COURSE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("courseNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getCourse_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getCourse_argsTupleSchemeFactory());
}
public String courseNumber; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
COURSE_NUMBER((short)1, "courseNumber");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // COURSE_NUMBER
return COURSE_NUMBER;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.COURSE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("courseNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCourse_args.class, metaDataMap);
}
public getCourse_args() {
}
public getCourse_args(
String courseNumber)
{
this();
this.courseNumber = courseNumber;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public getCourse_args(getCourse_args other) {
if (other.isSetCourseNumber()) {
this.courseNumber = other.courseNumber;
}
}
public getCourse_args deepCopy() {
return new getCourse_args(this);
}
@Override
public void clear() {
this.courseNumber = null;
}
public String getCourseNumber() {
return this.courseNumber;
}
public getCourse_args setCourseNumber(String courseNumber) {
this.courseNumber = courseNumber;
return this;
}
public void unsetCourseNumber() {
this.courseNumber = null;
}
/** Returns true if field courseNumber is set (has been assigned a value) and false otherwise */
public boolean isSetCourseNumber() {
return this.courseNumber != null;
}
public void setCourseNumberIsSet(boolean value) {
if (!value) {
this.courseNumber = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case COURSE_NUMBER:
if (value == null) {
unsetCourseNumber();
} else {
setCourseNumber((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case COURSE_NUMBER:
return getCourseNumber();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case COURSE_NUMBER:
return isSetCourseNumber();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof getCourse_args)
return this.equals((getCourse_args)that);
return false;
}
public boolean equals(getCourse_args that) {
if (that == null)
return false;
boolean this_present_courseNumber = true && this.isSetCourseNumber();
boolean that_present_courseNumber = true && that.isSetCourseNumber();
if (this_present_courseNumber || that_present_courseNumber) {
if (!(this_present_courseNumber && that_present_courseNumber))
return false;
if (!this.courseNumber.equals(that.courseNumber))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(getCourse_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
getCourse_args typedOther = (getCourse_args)other;
lastComparison = Boolean.valueOf(isSetCourseNumber()).compareTo(typedOther.isSetCourseNumber());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCourseNumber()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courseNumber, typedOther.courseNumber);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("getCourse_args(");
boolean first = true;
sb.append("courseNumber:");
if (this.courseNumber == null) {
sb.append("null");
} else {
sb.append(this.courseNumber);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class getCourse_argsStandardSchemeFactory implements SchemeFactory {
public getCourse_argsStandardScheme getScheme() {
return new getCourse_argsStandardScheme();
}
}
private static class getCourse_argsStandardScheme extends StandardScheme<getCourse_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, getCourse_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // COURSE_NUMBER
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.courseNumber = iprot.readString();
struct.setCourseNumberIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, getCourse_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.courseNumber != null) {
oprot.writeFieldBegin(COURSE_NUMBER_FIELD_DESC);
oprot.writeString(struct.courseNumber);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class getCourse_argsTupleSchemeFactory implements SchemeFactory {
public getCourse_argsTupleScheme getScheme() {
return new getCourse_argsTupleScheme();
}
}
private static class getCourse_argsTupleScheme extends TupleScheme<getCourse_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getCourse_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetCourseNumber()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetCourseNumber()) {
oprot.writeString(struct.courseNumber);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getCourse_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.courseNumber = iprot.readString();
struct.setCourseNumberIsSet(true);
}
}
}
}
public static class getCourse_result implements org.apache.thrift.TBase<getCourse_result, getCourse_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCourse_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.protocol.TField CNF_FIELD_DESC = new org.apache.thrift.protocol.TField("cnf", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getCourse_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getCourse_resultTupleSchemeFactory());
}
public Course success; // required
public CourseNotFound cnf; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
CNF((short)1, "cnf");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // CNF
return CNF;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Course.class)));
tmpMap.put(_Fields.CNF, new org.apache.thrift.meta_data.FieldMetaData("cnf", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCourse_result.class, metaDataMap);
}
public getCourse_result() {
}
public getCourse_result(
Course success,
CourseNotFound cnf)
{
this();
this.success = success;
this.cnf = cnf;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public getCourse_result(getCourse_result other) {
if (other.isSetSuccess()) {
this.success = new Course(other.success);
}
if (other.isSetCnf()) {
this.cnf = new CourseNotFound(other.cnf);
}
}
public getCourse_result deepCopy() {
return new getCourse_result(this);
}
@Override
public void clear() {
this.success = null;
this.cnf = null;
}
public Course getSuccess() {
return this.success;
}
public getCourse_result setSuccess(Course success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public CourseNotFound getCnf() {
return this.cnf;
}
public getCourse_result setCnf(CourseNotFound cnf) {
this.cnf = cnf;
return this;
}
public void unsetCnf() {
this.cnf = null;
}
/** Returns true if field cnf is set (has been assigned a value) and false otherwise */
public boolean isSetCnf() {
return this.cnf != null;
}
public void setCnfIsSet(boolean value) {
if (!value) {
this.cnf = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Course)value);
}
break;
case CNF:
if (value == null) {
unsetCnf();
} else {
setCnf((CourseNotFound)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case CNF:
return getCnf();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case CNF:
return isSetCnf();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof getCourse_result)
return this.equals((getCourse_result)that);
return false;
}
public boolean equals(getCourse_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
boolean this_present_cnf = true && this.isSetCnf();
boolean that_present_cnf = true && that.isSetCnf();
if (this_present_cnf || that_present_cnf) {
if (!(this_present_cnf && that_present_cnf))
return false;
if (!this.cnf.equals(that.cnf))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(getCourse_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
getCourse_result typedOther = (getCourse_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetCnf()).compareTo(typedOther.isSetCnf());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCnf()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cnf, typedOther.cnf);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("getCourse_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("cnf:");
if (this.cnf == null) {
sb.append("null");
} else {
sb.append(this.cnf);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class getCourse_resultStandardSchemeFactory implements SchemeFactory {
public getCourse_resultStandardScheme getScheme() {
return new getCourse_resultStandardScheme();
}
}
private static class getCourse_resultStandardScheme extends StandardScheme<getCourse_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, getCourse_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new Course();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // CNF
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.cnf = new CourseNotFound();
struct.cnf.read(iprot);
struct.setCnfIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, getCourse_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
if (struct.cnf != null) {
oprot.writeFieldBegin(CNF_FIELD_DESC);
struct.cnf.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class getCourse_resultTupleSchemeFactory implements SchemeFactory {
public getCourse_resultTupleScheme getScheme() {
return new getCourse_resultTupleScheme();
}
}
private static class getCourse_resultTupleScheme extends TupleScheme<getCourse_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getCourse_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetCnf()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
if (struct.isSetCnf()) {
struct.cnf.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getCourse_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = new Course();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.cnf = new CourseNotFound();
struct.cnf.read(iprot);
struct.setCnfIsSet(true);
}
}
}
}
public static class addCourse_args implements org.apache.thrift.TBase<addCourse_args, addCourse_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCourse_args");
private static final org.apache.thrift.protocol.TField COURSE_FIELD_DESC = new org.apache.thrift.protocol.TField("course", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new addCourse_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new addCourse_argsTupleSchemeFactory());
}
public Course course; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
COURSE((short)1, "course");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // COURSE
return COURSE;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.COURSE, new org.apache.thrift.meta_data.FieldMetaData("course", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Course.class)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCourse_args.class, metaDataMap);
}
public addCourse_args() {
}
public addCourse_args(
Course course)
{
this();
this.course = course;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public addCourse_args(addCourse_args other) {
if (other.isSetCourse()) {
this.course = new Course(other.course);
}
}
public addCourse_args deepCopy() {
return new addCourse_args(this);
}
@Override
public void clear() {
this.course = null;
}
public Course getCourse() {
return this.course;
}
public addCourse_args setCourse(Course course) {
this.course = course;
return this;
}
public void unsetCourse() {
this.course = null;
}
/** Returns true if field course is set (has been assigned a value) and false otherwise */
public boolean isSetCourse() {
return this.course != null;
}
public void setCourseIsSet(boolean value) {
if (!value) {
this.course = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case COURSE:
if (value == null) {
unsetCourse();
} else {
setCourse((Course)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case COURSE:
return getCourse();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case COURSE:
return isSetCourse();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof addCourse_args)
return this.equals((addCourse_args)that);
return false;
}
public boolean equals(addCourse_args that) {
if (that == null)
return false;
boolean this_present_course = true && this.isSetCourse();
boolean that_present_course = true && that.isSetCourse();
if (this_present_course || that_present_course) {
if (!(this_present_course && that_present_course))
return false;
if (!this.course.equals(that.course))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(addCourse_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
addCourse_args typedOther = (addCourse_args)other;
lastComparison = Boolean.valueOf(isSetCourse()).compareTo(typedOther.isSetCourse());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCourse()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.course, typedOther.course);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("addCourse_args(");
boolean first = true;
sb.append("course:");
if (this.course == null) {
sb.append("null");
} else {
sb.append(this.course);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (course != null) {
course.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class addCourse_argsStandardSchemeFactory implements SchemeFactory {
public addCourse_argsStandardScheme getScheme() {
return new addCourse_argsStandardScheme();
}
}
private static class addCourse_argsStandardScheme extends StandardScheme<addCourse_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, addCourse_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // COURSE
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.course = new Course();
struct.course.read(iprot);
struct.setCourseIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, addCourse_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.course != null) {
oprot.writeFieldBegin(COURSE_FIELD_DESC);
struct.course.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class addCourse_argsTupleSchemeFactory implements SchemeFactory {
public addCourse_argsTupleScheme getScheme() {
return new addCourse_argsTupleScheme();
}
}
private static class addCourse_argsTupleScheme extends TupleScheme<addCourse_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, addCourse_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetCourse()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetCourse()) {
struct.course.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, addCourse_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.course = new Course();
struct.course.read(iprot);
struct.setCourseIsSet(true);
}
}
}
}
public static class addCourse_result implements org.apache.thrift.TBase<addCourse_result, addCourse_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCourse_result");
private static final org.apache.thrift.protocol.TField UC_FIELD_DESC = new org.apache.thrift.protocol.TField("uc", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new addCourse_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new addCourse_resultTupleSchemeFactory());
}
public UnacceptableCourse uc; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
UC((short)1, "uc");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // UC
return UC;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.UC, new org.apache.thrift.meta_data.FieldMetaData("uc", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCourse_result.class, metaDataMap);
}
public addCourse_result() {
}
public addCourse_result(
UnacceptableCourse uc)
{
this();
this.uc = uc;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public addCourse_result(addCourse_result other) {
if (other.isSetUc()) {
this.uc = new UnacceptableCourse(other.uc);
}
}
public addCourse_result deepCopy() {
return new addCourse_result(this);
}
@Override
public void clear() {
this.uc = null;
}
public UnacceptableCourse getUc() {
return this.uc;
}
public addCourse_result setUc(UnacceptableCourse uc) {
this.uc = uc;
return this;
}
public void unsetUc() {
this.uc = null;
}
/** Returns true if field uc is set (has been assigned a value) and false otherwise */
public boolean isSetUc() {
return this.uc != null;
}
public void setUcIsSet(boolean value) {
if (!value) {
this.uc = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case UC:
if (value == null) {
unsetUc();
} else {
setUc((UnacceptableCourse)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case UC:
return getUc();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case UC:
return isSetUc();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof addCourse_result)
return this.equals((addCourse_result)that);
return false;
}
public boolean equals(addCourse_result that) {
if (that == null)
return false;
boolean this_present_uc = true && this.isSetUc();
boolean that_present_uc = true && that.isSetUc();
if (this_present_uc || that_present_uc) {
if (!(this_present_uc && that_present_uc))
return false;
if (!this.uc.equals(that.uc))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(addCourse_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
addCourse_result typedOther = (addCourse_result)other;
lastComparison = Boolean.valueOf(isSetUc()).compareTo(typedOther.isSetUc());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUc()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uc, typedOther.uc);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("addCourse_result(");
boolean first = true;
sb.append("uc:");
if (this.uc == null) {
sb.append("null");
} else {
sb.append(this.uc);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class addCourse_resultStandardSchemeFactory implements SchemeFactory {
public addCourse_resultStandardScheme getScheme() {
return new addCourse_resultStandardScheme();
}
}
private static class addCourse_resultStandardScheme extends StandardScheme<addCourse_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, addCourse_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // UC
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.uc = new UnacceptableCourse();
struct.uc.read(iprot);
struct.setUcIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, addCourse_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.uc != null) {
oprot.writeFieldBegin(UC_FIELD_DESC);
struct.uc.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class addCourse_resultTupleSchemeFactory implements SchemeFactory {
public addCourse_resultTupleScheme getScheme() {
return new addCourse_resultTupleScheme();
}
}
private static class addCourse_resultTupleScheme extends TupleScheme<addCourse_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, addCourse_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetUc()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetUc()) {
struct.uc.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, addCourse_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.uc = new UnacceptableCourse();
struct.uc.read(iprot);
struct.setUcIsSet(true);
}
}
}
}
public static class deleteCourse_args implements org.apache.thrift.TBase<deleteCourse_args, deleteCourse_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteCourse_args");
private static final org.apache.thrift.protocol.TField COURSE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("courseNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new deleteCourse_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new deleteCourse_argsTupleSchemeFactory());
}
public String courseNumber; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
COURSE_NUMBER((short)1, "courseNumber");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // COURSE_NUMBER
return COURSE_NUMBER;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.COURSE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("courseNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteCourse_args.class, metaDataMap);
}
public deleteCourse_args() {
}
public deleteCourse_args(
String courseNumber)
{
this();
this.courseNumber = courseNumber;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public deleteCourse_args(deleteCourse_args other) {
if (other.isSetCourseNumber()) {
this.courseNumber = other.courseNumber;
}
}
public deleteCourse_args deepCopy() {
return new deleteCourse_args(this);
}
@Override
public void clear() {
this.courseNumber = null;
}
public String getCourseNumber() {
return this.courseNumber;
}
public deleteCourse_args setCourseNumber(String courseNumber) {
this.courseNumber = courseNumber;
return this;
}
public void unsetCourseNumber() {
this.courseNumber = null;
}
/** Returns true if field courseNumber is set (has been assigned a value) and false otherwise */
public boolean isSetCourseNumber() {
return this.courseNumber != null;
}
public void setCourseNumberIsSet(boolean value) {
if (!value) {
this.courseNumber = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case COURSE_NUMBER:
if (value == null) {
unsetCourseNumber();
} else {
setCourseNumber((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case COURSE_NUMBER:
return getCourseNumber();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case COURSE_NUMBER:
return isSetCourseNumber();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof deleteCourse_args)
return this.equals((deleteCourse_args)that);
return false;
}
public boolean equals(deleteCourse_args that) {
if (that == null)
return false;
boolean this_present_courseNumber = true && this.isSetCourseNumber();
boolean that_present_courseNumber = true && that.isSetCourseNumber();
if (this_present_courseNumber || that_present_courseNumber) {
if (!(this_present_courseNumber && that_present_courseNumber))
return false;
if (!this.courseNumber.equals(that.courseNumber))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(deleteCourse_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
deleteCourse_args typedOther = (deleteCourse_args)other;
lastComparison = Boolean.valueOf(isSetCourseNumber()).compareTo(typedOther.isSetCourseNumber());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCourseNumber()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courseNumber, typedOther.courseNumber);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("deleteCourse_args(");
boolean first = true;
sb.append("courseNumber:");
if (this.courseNumber == null) {
sb.append("null");
} else {
sb.append(this.courseNumber);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class deleteCourse_argsStandardSchemeFactory implements SchemeFactory {
public deleteCourse_argsStandardScheme getScheme() {
return new deleteCourse_argsStandardScheme();
}
}
private static class deleteCourse_argsStandardScheme extends StandardScheme<deleteCourse_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, deleteCourse_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // COURSE_NUMBER
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.courseNumber = iprot.readString();
struct.setCourseNumberIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteCourse_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.courseNumber != null) {
oprot.writeFieldBegin(COURSE_NUMBER_FIELD_DESC);
oprot.writeString(struct.courseNumber);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class deleteCourse_argsTupleSchemeFactory implements SchemeFactory {
public deleteCourse_argsTupleScheme getScheme() {
return new deleteCourse_argsTupleScheme();
}
}
private static class deleteCourse_argsTupleScheme extends TupleScheme<deleteCourse_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, deleteCourse_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetCourseNumber()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetCourseNumber()) {
oprot.writeString(struct.courseNumber);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, deleteCourse_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.courseNumber = iprot.readString();
struct.setCourseNumberIsSet(true);
}
}
}
}
public static class deleteCourse_result implements org.apache.thrift.TBase<deleteCourse_result, deleteCourse_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteCourse_result");
private static final org.apache.thrift.protocol.TField CNF_FIELD_DESC = new org.apache.thrift.protocol.TField("cnf", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new deleteCourse_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new deleteCourse_resultTupleSchemeFactory());
}
public CourseNotFound cnf; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
CNF((short)1, "cnf");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // CNF
return CNF;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.CNF, new org.apache.thrift.meta_data.FieldMetaData("cnf", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteCourse_result.class, metaDataMap);
}
public deleteCourse_result() {
}
public deleteCourse_result(
CourseNotFound cnf)
{
this();
this.cnf = cnf;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public deleteCourse_result(deleteCourse_result other) {
if (other.isSetCnf()) {
this.cnf = new CourseNotFound(other.cnf);
}
}
public deleteCourse_result deepCopy() {
return new deleteCourse_result(this);
}
@Override
public void clear() {
this.cnf = null;
}
public CourseNotFound getCnf() {
return this.cnf;
}
public deleteCourse_result setCnf(CourseNotFound cnf) {
this.cnf = cnf;
return this;
}
public void unsetCnf() {
this.cnf = null;
}
/** Returns true if field cnf is set (has been assigned a value) and false otherwise */
public boolean isSetCnf() {
return this.cnf != null;
}
public void setCnfIsSet(boolean value) {
if (!value) {
this.cnf = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case CNF:
if (value == null) {
unsetCnf();
} else {
setCnf((CourseNotFound)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case CNF:
return getCnf();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case CNF:
return isSetCnf();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof deleteCourse_result)
return this.equals((deleteCourse_result)that);
return false;
}
public boolean equals(deleteCourse_result that) {
if (that == null)
return false;
boolean this_present_cnf = true && this.isSetCnf();
boolean that_present_cnf = true && that.isSetCnf();
if (this_present_cnf || that_present_cnf) {
if (!(this_present_cnf && that_present_cnf))
return false;
if (!this.cnf.equals(that.cnf))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(deleteCourse_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
deleteCourse_result typedOther = (deleteCourse_result)other;
lastComparison = Boolean.valueOf(isSetCnf()).compareTo(typedOther.isSetCnf());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCnf()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cnf, typedOther.cnf);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("deleteCourse_result(");
boolean first = true;
sb.append("cnf:");
if (this.cnf == null) {
sb.append("null");
} else {
sb.append(this.cnf);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class deleteCourse_resultStandardSchemeFactory implements SchemeFactory {
public deleteCourse_resultStandardScheme getScheme() {
return new deleteCourse_resultStandardScheme();
}
}
private static class deleteCourse_resultStandardScheme extends StandardScheme<deleteCourse_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, deleteCourse_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // CNF
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.cnf = new CourseNotFound();
struct.cnf.read(iprot);
struct.setCnfIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteCourse_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.cnf != null) {
oprot.writeFieldBegin(CNF_FIELD_DESC);
struct.cnf.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class deleteCourse_resultTupleSchemeFactory implements SchemeFactory {
public deleteCourse_resultTupleScheme getScheme() {
return new deleteCourse_resultTupleScheme();
}
}
private static class deleteCourse_resultTupleScheme extends TupleScheme<deleteCourse_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, deleteCourse_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetCnf()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetCnf()) {
struct.cnf.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, deleteCourse_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.cnf = new CourseNotFound();
struct.cnf.read(iprot);
struct.setCnfIsSet(true);
}
}
|
3e1912a8-3e48-4b5a-b124-8b268c0f4791
|
public java.lang.String getCustomText47() {
return this.customText47;
}
|
10c458fb-77ae-44e5-8068-ae6e28573af9
|
public void setCustomDate44(java.util.Calendar customDate44) {
this.customDate44 = customDate44;
}
|
cbb48d70-8439-4fe5-acc8-1681ec854e9a
|
public org.bwapi.proxy.messages.GameMessages.WeaponTypeData.Builder addWeaponsBuilder(
int index) {
return getWeaponsFieldBuilder().addBuilder(
index, org.bwapi.proxy.messages.GameMessages.WeaponTypeData.getDefaultInstance());
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.