So as you can see here this is the method that they actually pasted here.
As you can see and now I'm going to explain to you what does this method do.
OK.
So first of all as you can see that the axis modifier of this method is actually public and as you can
see the Smurfette is actually static.
So this is going to be our class method so we can use this class name in order to access that the name
of this method in order to access this method.
And as you can see the return type of this method is actually iTunes stuff.
So as you can see here we have this iTunes stuff class in our project and in this class in the States
on iTunes part of the class that the return type is going to be iTunes stuff which is of type which
is actually at type a class that we have in our project.
OK.
I created this class in our project in order to actually hold the values that you receive from the Internet.
Right.
So the return type is going to be iTunes stuff and the name of this live at is get iTunes stuff.
So the job of this method is to actually download actually get adjacent values from the Internet.
That's the job of this method.
OK.
So and then you can actually assign those values to the to the instance variables that are inside of
this iTunes stuff and then it's going to be 10 on iTunes stuff object.
OK.
That's that's the job of the Smurfit at the name of this method is get our team's stuff and this method
actually it's an argument of type streams.
And as you can see here the name of this argument is data.
So what is this data.
The data is actually the Arel that we actually passed this method in order to access for example values.
For example I actually used this article for example husht TTP as Colon slash slash items that Apple
dot com slash search question mark 10 equal operator as you can see here Jack plus Johnson instead of
Dr. Johnson I used Michael Jackson.
Right.
So this is going to be the data this is going to be this argument that I actually put here.
So if we pass this model to the Smurfette which is of type strange as you can see here and then we can
actually get those data as you can see here we have this data here.
OK.
By using that that we can access these days on object right.
So that's why we actually specify that this Mivart get iTunes stuff is going to accept an argument of
type string and its name is going to be data.
Right.
So hopefully that makes sense and this it froze just an exception.
OK.
Because we may actually past that Ron you RL to this Mefford as you can see here as an argument and
it may actually fail to access the Internet.
So it's going to actually throw an exception.
So we need to actually handle that exception.
So that's why I put these fros Jason exception here.
As you can see here now we are inside this method.
So I'm going to explain to you what is going on inside the Smurfette.
First of all because this method is going to return an object of type iTunes stuff I created an object
of type stuff inside the class as you can see here inline 18.
I refer to the name of this iTunes stuff class and the name of this object is iTunes stuff assignment
operator new iTunes stuff.
So here I am actually creating an object of type iTunes stuff.
And here I am actually initializing this object.
Right.
So we have an object of type iTunes stuff in line 20 as you can see here.
I created an object of type J some object as you can see here just an object and the name of this object
is iTunes stuff Jason.
Object.
OK.
So what is going to be the state's an object an object is going to be the top level adjacent object.
So remember I told you that we have this starting curly brace and that and that and that end in curly
brace at the bottom of this page.
This means that this is actually a clump of one decent object.
We have a top level Dasent object.
And inside that is an object.
We have other values.
For example this resort town we have this Jason Auret that actually holds a multiple days of objects
and other values.
OK.
So we need to access this top level Dasen object as you can see here.
We need to access this top level adjacent object in order to access the values the adjacent objects
or the Jason Arey that are inside of this tracer object right.
So that's the job of this line of code here Dasent object items stuff the object assignment operator
new Jaison object.
So here I am actually creating an object of type just an object and I actually pass this data which
is of types in this u r l which is going to be of types three in an object constructor.
So let me ask you to change this name to you model.
OK.
You RL And let's change this data to you on it.
So the pastis you RL to the state an object in order to access this toplevel data object as you can
see here.
This is the starting calibrates of this is an object.
OK.
So as you can see I actually created an object of type just an object and the name of this object is
items stuff is an object new data object.
You got it.
So you pass this you are then in order to access the top level just an object.
And we are actually assigning tools data to these items.
Stuff just an object.
OK so now we accessed the top level Dasent object.
Now we can actually access these values that are inside of this same object.
This is very important to the flow of these lines of what is really important so pay attention here.
And 11:22 as you can see here I created again an object of pipe.
Jason Aure this is very important.
As you can see here because I want to actually access the value of this wrapper type kind artist name
collection name and all these values we need to access this Jason at a store.
As you can see here we have this Arey here.
OK.
Bracket's as you can see in the inside the brackets I have Dasen objects right.
I have multiple adjacent objects inside the brackets.
So I need to create adjacent agree with this tag named results as you can see here the result is actually
the tag name for accessing the Jason arii.
So as you can see here I create.
In 1992 I created an object of type Jasen results of a decent array and the name of this object is resolved.
Jason arii OK because I want to access the data objects inside of these states and ID.
OK this is really important.
So if you have an array of decent objects right as you can see here.
So here I created an object of type Jason AbbVie as you can see here.
Assignment operator and here are you referred to this toplevel distant object.
So as you can see here I actually I am now inside of this data object inside of this toplevel it's an
object.
So are you referred to the name of this top level based on object items.
Stuff they so object don't get Jason Adye.
So inside of these top level Dasent object we have this at a right.
We have that error here inside of this top level just an object.
So I'd use stuff distant objects that get Jason Aure and here as you can see inside the double quotes
I need to put the package name in order to access the adjacent arii as you can see here.
As you can see the name of this pack is actually results inside a double called.
So this is very important that the technique that you put here must be the same as the tag name that
is here.
Results.
So when I put these results here I can now access this Jason arii.
Now I can access the data on Attie and this results.
Jason R8 holds or this is somebody that actually holds multiple Dasen objects OK.
Multiple as you can see this starting calibrates and this ending calibrates mean is that this is actually
the adjacent object and this brackets here as you can see this starting bracket and the and the end
in bracket at the bottom of the page.
Let me show you that this is the this is actually the ending bracket right.
This is actually adjacent arii.
So inside this Aure we have Jason Optix.
So as you can see here Jason Arey results the son of a.
And as you can see iTunes stuff is an object that gets an average results.
So now I can act.
I urge you to access.
Today sorry I can't access the values that are inside of the J sarkari.
OK the values that are inside of the and how they are going to be adjacent objects right as you can
see here.
So and here in line 23 I created and other adjacent object as you can see here.
So now I am in sight of this at a right.
So I can access these data objects that are inside of this Adye.
OK.
So for example I want to access this first adjacent object.
OK this is that this is actually the starting curly brace of this.
It's an object as you can see here.
This is the start in calibrates and this is the end in calibers.
This is the first Jason object that is actually inside of this results.
The NRA as you can see here.
So I want to access this first.
The object is for a straight object.
So in line 23 I created an object of type Dasent object and the name of this object is artist object.
OK.
I want to access the artist object.
Assignment operator results based on a as you can see here the results.
Jason Arezzo so I referred to the name of this as a dot.
Get Jason object zero as you can see here the results are referred to the name of this object resultset
and how he does get Jason objects so it's going to actually return.
This method is going to return adjacent object to me right.
And I put this value zero this value zero means the index of the objects inside of this Aure.
So I want this index zero.
I want this first taste of object that is actually the inside of this.
Jason Adye right.
So you want this object.
That's why I put this up number zero here because I want to access the value 0 the index 0.
The object that is inside of the index 0 of these recent.
This is very important and in line 24 as you can see here I referred to the name of these items of object
that I actually created in line 18 inside the Smurfit and I actually just called MF at on this object
items stuff that said type.
So as you can see here inside this I-tunes stuff class I declared these instance variables as private
right.
And I also provided these getters and setters in order to let the other classes to access or to set
some values to these up to this instance variables.
So insight is Jason items parser of a file.
Here I want to set the type so items stuff that said type and now because I am inside of these Jason
arii and I also try to access this first object inside of these states and at a.
Now I can access their values as you can see here.
We have these values inside of this data object like this first statement object.
Now I can access these values inside of these states an object as you can see here.
So let's see how we can do that.
I've used stuff that said type so I'm going to actually set the type ok for the type instance value.
But inside this iTunes stuff class.
So remember that the job of this class is actually to hold the values that I get from the internet and
I want to actually assigned into the instance variables of this class.
So for example I want to set the type.
So inside these days that I'd use parts of class items stuff that said type.
So here you referred to my own method in my class get strange as you can see here the Smurfette jet
stream is going actually to get the string value of the adjacent object.
So as you can see here the Smurfit actually accepts two arguments.
The first argument is is of type strange and the name of this argument is tag name.
And the second argument is of type Jasen object and the name of this argument is just an object.
OK.
So here inside this if you are just returning this thing value.
Jason Optik that gets strange.
Tacony right.
So here you referred to the name of the Smurfette get stream right.
Gets strange.
So items stuff the set type gets thing so this never actually needs to arguments right.
Two parameters the first parameter is going to be the tag name.
So here as you can see this is the first just an object that we are actually getting here in this just
an arrow right.
And I want to actually access the value of this wrapper type.
So this wrapper type is the tag name.
So I pass this tag name here.
And the second argument is going to be artist object as you can see here.
The access this object right.
This is the axes object and I call this object this first object the artist object.
So now I can access this object and the values that are inside of this object.
And then I referred to the name of this tag name wrapper type in order to access this value track.
As you can see here.
So the first argument is the tag name and the second argument is the adjacent object that this value
this tag name or other values exist inside its right.
This is really important.
So if you have any questions about some objects please post the discussion in the course and then I'll
do my best to answer all of your questions in this way.
We are actually getting the value of this wrapped up her type here.
OK.
And we are actually sitting that to this type instance variable.
So I've seen stuff that said like it's strange that partite artists up to it and in line actually in
twenty.
Again I referred to the name of this object.
Used stuff that said kind.
OK I want to set the client to this stuff object.
So in our web browser as you can see we have these kind here.
After this haplotype I have this kind so I want to get this sand value.
So I just typed in here items stuff that said kind get strange.
So again this value is of tapes thing as you can see here.
The sand is inside the double coats and this means that this is actually of type string.
So I use stuff that said kind get strange.
So you just referred to the name of the tag name the tag name is kind.
Right.
So kind and this kind is actually inside is just an object.
OK.
The first is some object which is which I call it artist checked.
OK.
So in this way I can access the value of this kind.
OK.
So as you can see here again in line 26 items stuff that said artist's name gets three and again we
want to actually access the value of this artist name which is strange Michael Jackson right.
So it seems the stuff that said artist name gets strange artist name which is going to be the Tadg as
you can see here.
This is the tag and the artist object that is this artist object.
The first artist object that is inside of this art.
Ari OK so this is our first artist object as you can see here.
OK.
And we have other artist objects too.
So the artist objects the objects are actually separated by a comma.
And as you can see here we have other objects inside of this tree.
So so we're only just getting the first artists object for actually educational purposes because I want
to show you how you can actually access these values.
And later in this course we're going to build a more complex application and we can't.
And then we will be I could actually parsing Jason objects and you will see how you can actually be
more efficient of Jason as you can see here inline 26 items.
Stuff that said artist name so I want to set the artist name so I'll just refer to to my own if it gets
strange artist name artist object.
OK so this Meffert or get that string is going to return a value of type street and then it can actually
return that value to this artist name artist name.
Is this valuable that is inside of these items in stuffed glass.
OK.
So hopefully that makes sense.
So as you can see here in line 27 again I referred to the name of this object iTunes stuff that said
collection name.
So you want to set the collection name as you can see here we have this collection name here.
And I want to actually access Ismailia which is of type string.
So again I referred to the name of this method gets trained and this is the tag name collection name
as you can see here and here this is the object that you want to actually to get the collection.
So you want to actually get the collection collection.
That is inside of this Jasen object here.
OK.
So hopefully that makes sense.
And in twenty 28 I refer to the name of these items is stuff object that set artista view you Arel get
string art artwork cuartel 100 as you can see here.
This is going to be the tag name.
OK.
So here I want to actually access this artwork.
You are here.
In order to actually download this value to actually download this image from the Internet.
OK.
So I actually use this tag name and then I refer it to the name of this object artist object and in
line 29 I'll refer to the name of this object.
Stuff that said track name.
As you can see here get this train track name as you can see artist object so you want to access the
value of the trash name.
So the track is here as you can see here.
So again this is actually offtake strange and I needed to use this method to get strange.
And this is the tag name as you can see here.
And then this is the an object.
And at the end I am actually returning the object.
OK return items stuff.
And at the end I am actually returning these items stuff to some object.
OK iTunes stuff return items stuff.
And I think that's enough for this class.
So now we need another class in order to actually connect to the Internet and download the adjacent
values that the information from the internet.