class

Which web service stack allows binding wsdl first web service to existing classes in Java?

Greetings, I have a complicated scenario to handle. I have a wsdl file which uses a particular XML schema. The XML schema is actually a handcrafted implementation of a specification. There is also a Java based implementation of the same specification. So the XSD used in WSDL and Java classes at hand are quite similar, but not exactly s...

C++ Accessing a friends class->member->public method?

Is the following code legal in C++. Accessing a friend class member public method? I know this sounds confusing, and the best way to show it is in code. I was wondering if the TestClassC::Method() is valid in the code below? I've compiled (g++) and it works, however, I run into a situation, where it produces a segmentation fault on othe...

Create frame class in Tkinter Gui.

Hello, I'm working on a Gui and I'd like to know how to create a class that would implement frame. e.g. class WindowContent(Tkinter.?) """ This class would create a frame for my program window """ class App(Tkinter.Tk): """ main window constructor """ def __init__(self): Tkinter.Tk.__init__(self) program...

iphone - view init issue

I have come across a strange behavior... In class A, at the viewDidLoad method I do: b = [[B alloc] initWithNibName:@"B" bundle:nil]; //init the B class (declared as B* b) [b setText:@"ABCDDEEE"]; //change the text of a UITextView in b note that b's view is not shown until a button is pressed. However, when I press it and go to b's v...

How to get a variable returned across multiple functions - Javascript/jQuery

This question in summary is to figure out how to pass variables between javascript functions without: returning variables, passing parameters between primary functions, using global variables, and forcing function 1 to wait for function 2 to finish. I figured out a jQuery solution and posted in below (in the answers section). Old Pos...

Android Communicate with a Location Manager started from another activity

Hi all, In my app I want to obtain a gps lock and record the coords. But I do not want to lock the device into looking for the gps. The user is to be free to traverse through the app and the different activities within. So If I call a locationListener in activity A, can I reference it in activities B C and D? if is was still in activ...

How many objects were created in this code execution?

public class Animal { public Animal() { Console.Writeline("Animal"); } } public class Snake : Animal { public Snake() { Console.Writeline("Snake"); } } How many objects will be created in each of the following codes below? (Refer to the above code...) Animal myAni...

VB.NET: Get class name of a instance

Is there a way to get the instance's class name with VB.NET? ...

Where in the source code should I create an object?

I want to create an object from a class that I have created. What I have been trying is to create the object (which can be testingclass) from a method of another class, which I will call classexample, but it says that testingclass is undeclared, which I assumed meant that it was out of the scope of the method, and the method couldn't ac...

Interfaces in .Net

Hello everyone! I would like to use the same code for copying files to an FTP server, and through USB. I've already written some code, which as of now uses functions from the System.IO namespace. To minimize code duplication, I've listed the functions which I need from the system.IO namespace, and I was thinking of designing an interfa...

Php classes (I think)

Is there a way to create a php class (or function) that "simplifies" this ucfirst(str_replace('_',' ',html_entity_decode(trim($variable), ENT_QUOTES)))); The $variable could "come" from anywhere e.g a global from another function or just a "standard" variable ...

Call a function in class members (C++)

Consider the following: These classes are in different header files and each header file has its corrresponding source files. //------------------------------------------ // in Z.h class Z { public: Z(); ~Z(); void DoSomethingNasty(); } //------------------------------------------ // in X.h class X { public: X();...

Class type Objective C

I am sorry if this has been asked before, I have looked throughout stackoverflow and haven't found an answer to this question. In the NSObject protocol, it defines a method that is similar to this: -(Class) class What type of object is the Class object? Or is it even an object? What can I do with the object? Can I get the base class ...

Java Base Object Multi Type Variable

I'm sure this is incredibly common with as OOP centered as Java is. In java is there a way to make a base type variable that accepts all inherited subtypes? Like if I have; class Mammal {...} class Dog extends Mammal {...} class Cat extends Mammal {...} class ABC { private Mammal x; ABC() { this.x = new Dog(); ...

c# binding (complex) class property CF.NET

Hi, I am trying to make a 2-way binding of a class property. public class MyClass{ public MyField AField1{get;set;}; public MyField AField2{get;set;}; } public class MyField{ public string Value {get; set} } MyClass _class = MyClass(); _dv.DataSource = _class; Databinding text object displays MyField class name instead of Value Prop...

PHP IDE with webservice wsdl Import Support

Recently I have been building a lot of applications that needs to access webservices. I currently use a tool wsdl2php to generate a php Class file from the wsdl file. I was wondering if there are IDE's available that can do the same thing, or at least make it really easy to access/code against the Methods that are available. I currentl...

Creating a variable which is not accessible from a child class, and creating methods which cannot be overridden.

I am making a plug-in system for my application. It uses a framework with a class called vertCon, which currently looks like this: @interface vertCon : NSObject { NSProgressIndicator *progressBar; } /* May not be accessible by child classes */ @property (nonatomic, retain) IBOutlet NSProgressIndicator *progressBar; /* These two ar...

Isn't it easier to work with foo when it is represented by the class ArrayList rather than the interface List?

I see this syntax a lot and don't understand the reasoning behind it. I thought you generally want to work with classes rather than interfaces to make it easier to carry out the full panoply of operations you might want to perform. Why do this: List<Foo> foo = new ArrayList<Foo>(something.getFoo()); instead of this: ArrayList<Foo> f...

JavaScript namespace with Singleton usage? I'm stumped!

Hey everyone, This is my first post on StackOverflow. This community has provided me with some great insights into lots of different coding questions over the years. So since I've been stuck on this particular task in JS for days, I decided I'd lean on this great community and see what sort of help I could get on my question. I saw a...

Classes Superclasses Subclasses

I'm trying to make two subclasses a class: // Old code - (void)setPaging { [pagingScrollView addSubview:self.ImageScrollView]; } @interface ImageScrollView : UIScrollView <UIScrollViewDelegate> { UIView *imageView; NSUInteger index; } @property (assign) NSUInteger index; - (void)displayTiledImageNamed:(CGPDFPage...