Questions tagged [classname]

Classname may refer to classes in scripting languages and markup languages. Typically, a class denotes a certain part of the application which can be manipulated.

620 questions
5
votes
4 answers

java get name of package of class

I have a bunch of little services, conveniently called Microservices ;-), that all have the same startup behavior. They are arranged in packages - each one for one service. The package naming is like this: com.foo.bar.Application where com.foo is…
siliconchris
  • 613
  • 2
  • 9
  • 22
5
votes
1 answer

Print just class name in EL

I have an EL variable ${foo} in my JSP page. I want to print out the class name of the variable. I have tried: ${foo['class']} Which works just fine but it prints this exact text out: class app.test.model.Foo However I just want it to print out…
Richard
  • 5,840
  • 36
  • 123
  • 208
5
votes
2 answers

Does changing the class name affect Java Deserialization?

I am making a modification and a separate application that allows replays to be saved for a certain game. What I have to serialize and deserialize is an 2 arrays of class ContO, arrays of class Plane, Trackers, and a class Medium, and that is no…
user2741371
  • 105
  • 8
5
votes
1 answer

Programatically get the class of the belongs_to association in Rails 4

Let's say I have some classes linked by a one-to-many relationship: class A field :name, type: String has_many :b class B field :title, type: String belongs_to :a Let's also say I have an instance of B and I want to retrieve the class…
lucke84
  • 4,516
  • 3
  • 37
  • 58
5
votes
2 answers

vanilla javascript classList manipulation on hover

Trying to do some really basic class manipulation on hover and load for a splash page. Not sure why it's not working- then again, never written in Vanilla before. jsFiddle example. basic DOM:

test

technopeasant
  • 7,809
  • 31
  • 91
  • 149
5
votes
0 answers

iOS - Accessing the name of IBOutlet

I am having several IBOutlets of UIView; several subviews within my parent view. I am trying to loop over all the subviews which are UIView. I want to loop over all subviews that have the name of their IBOutlet starting with "view_" Can somebody…
Joe Saad
  • 1,940
  • 3
  • 22
  • 32
5
votes
3 answers

Use duplicate class name on an element?

I found that there are many frameworks that will check the duplicate class name before adding the new class name on the element which I think will slow down the performance. Are there any problems when the element has a duplicate class name? It will…
Angolao
  • 986
  • 1
  • 15
  • 27
4
votes
2 answers

Can C++ method names be qualified by the class name, in the header?

Simple question, is this valid C++: class Foo { void Foo::doSomething(); }; The point of the question: is that repeated use of the class name and double colon before the method name valid inside the class declaration? I'm having issues…
unwind
  • 391,730
  • 64
  • 469
  • 606
4
votes
1 answer

Convert HTMLCollection to an array with JavaScript

I want to get all the HTML elements with the class "Box" and then that collection convert it to an Array so i can acces each element throught position. This is the code i made: function BoxAppearence() { var BoxCollection =…
WebDev001
  • 91
  • 1
  • 1
  • 6
4
votes
2 answers

When should I use 'className' over 'class' and vise versa in react?

I'm making my first react app and i've come across something interesting, I sometimes use className over class on react. I'm just wondering if they are interchangeable or is it like this for a reason? I also notice that when I use class the inspect…
alexholstv
  • 146
  • 1
  • 10
4
votes
1 answer

Keep functions and classes names on optimized build with Angular 8 (for reflexion purposes)

I'm trying to configure my Angular 8 project build to keep functions and classes names (I need my classes names to use reflexion and other class name based stuff). To manage this, I use @angular-builders/custom-webpack which allows to override…
Ben
  • 3,972
  • 8
  • 43
  • 82
4
votes
4 answers

React JSX in className if-else syntax

I am currently working on a react app where I am adding and changing classes based on certain state changes. It worked successfully in testing with a ternary operator but now I realized I will have to add mutiple else-if statements so I am trying to…
user9069254
  • 153
  • 2
  • 12
4
votes
2 answers

JAVA: Conflicts with Same Package and class names present under different Source folders

I am facing a conflict with class and package names that have same name under different source. In a nutshell, the directory structure looks somewhat like this: src/test/java com.service.helper Constants.java src/intTest/java …
Kurshit
  • 143
  • 2
  • 15
4
votes
1 answer

How to handle similar class names in different solutions, using native visualisers

In my company we are working with native visualisers (.natvis files) for debugging memory dumps in Visual Studio. As we have equal class names for different projects, we are thinking of including .natvis files in the project definitions, and this…
Dominique
  • 16,450
  • 15
  • 56
  • 112
4
votes
5 answers

How can I find element having an email address as class name using jQuery?

How can I find an element having an email address as class name. Email address is dynamic. $(document).ready(function(){ //not working getting error var email="abc@gmail.com"; $("#main").find("."+email); //not working …
pareshm
  • 4,874
  • 5
  • 35
  • 53