@ -58,11 +58,11 @@ public class ServiceAction {
protected String name ;
protected UPNPService parent ;
private List orderedActionArguments ;
private List orderedInputActionArguments ;
private List orderedOutputActionArguments ;
private List orderedInputActionArgumentsNames ;
private List orderedOutputActionArgumentsNames ;
private List < ServiceActionArgument > orderedActionArguments ;
private List < ServiceActionArgument > orderedInputActionArguments ;
private List < ServiceActionArgument > orderedOutputActionArguments ;
private List < String > orderedInputActionArgumentsNames ;
private List < String > orderedOutputActionArgumentsNames ;
protected ServiceAction ( ) {
}
@ -75,7 +75,7 @@ public class ServiceAction {
* The action in and out arguments ServiceActionArgument objects list
* @return the list with ServiceActionArgument objects or null if the action has no params
* /
public List getActionArguments ( ) {
public List < ServiceActionArgument > getActionArguments ( ) {
return orderedActionArguments ;
}
@ -86,14 +86,14 @@ public class ServiceAction {
* /
public ServiceActionArgument getActionArgument ( String argumentName ) {
if ( orderedActionArguments = = null ) return null ;
for ( Iterator i = orderedActionArguments . iterator ( ) ; i . hasNext ( ) ; ) {
ServiceActionArgument arg = ( ServiceActionArgument ) i . next ( ) ;
for ( Iterator < ServiceActionArgument > i = orderedActionArguments . iterator ( ) ; i . hasNext ( ) ; ) {
ServiceActionArgument arg = i . next ( ) ;
if ( arg . getName ( ) . equals ( argumentName ) ) return arg ;
}
return null ;
}
protected void setActionArguments ( List orderedActionArguments ) {
protected void setActionArguments ( List < ServiceActionArgument > orderedActionArguments ) {
this . orderedActionArguments = orderedActionArguments ;
orderedInputActionArguments = getListForActionArgument ( orderedActionArguments , ServiceActionArgument . DIRECTION_IN ) ;
orderedOutputActionArguments = getListForActionArgument ( orderedActionArguments , ServiceActionArgument . DIRECTION_OUT ) ;
@ -106,7 +106,7 @@ public class ServiceAction {
* @return a list containing input arguments ServiceActionArgument objects or null when nothing
* is needed for such operation
* /
public List getInputActionArguments ( ) {
public List < ServiceActionArgument > getInputActionArguments ( ) {
return orderedInputActionArguments ;
}
@ -117,8 +117,8 @@ public class ServiceAction {
* /
public ServiceActionArgument getInputActionArgument ( String argumentName ) {
if ( orderedInputActionArguments = = null ) return null ;
for ( Iterator i = orderedInputActionArguments . iterator ( ) ; i . hasNext ( ) ; ) {
ServiceActionArgument arg = ( ServiceActionArgument ) i . next ( ) ;
for ( Iterator < ServiceActionArgument > i = orderedInputActionArguments . iterator ( ) ; i . hasNext ( ) ; ) {
ServiceActionArgument arg = i . next ( ) ;
if ( arg . getName ( ) . equals ( argumentName ) ) return arg ;
}
return null ;
@ -130,7 +130,7 @@ public class ServiceAction {
* @return a list containing output arguments ServiceActionArgument objects or null when nothing
* returned for such operation
* /
public List getOutputActionArguments ( ) {
public List < ServiceActionArgument > getOutputActionArguments ( ) {
return orderedOutputActionArguments ;
}
@ -141,8 +141,8 @@ public class ServiceAction {
* /
public ServiceActionArgument getOutputActionArgument ( String argumentName ) {
if ( orderedOutputActionArguments = = null ) return null ;
for ( Iterator i = orderedOutputActionArguments . iterator ( ) ; i . hasNext ( ) ; ) {
ServiceActionArgument arg = ( ServiceActionArgument ) i . next ( ) ;
for ( Iterator < ServiceActionArgument > i = orderedOutputActionArguments . iterator ( ) ; i . hasNext ( ) ; ) {
ServiceActionArgument arg = i . next ( ) ;
if ( arg . getName ( ) . equals ( argumentName ) ) return arg ;
}
return null ;
@ -153,7 +153,7 @@ public class ServiceAction {
* @return a list containing input arguments names as Strings or null when nothing
* is needed for such operation
* /
public List getInputActionArgumentsNames ( ) {
public List < String > getInputActionArgumentsNames ( ) {
return orderedInputActionArgumentsNames ;
}
@ -162,7 +162,7 @@ public class ServiceAction {
* @return a list containing output arguments names as Strings or null when nothing
* returned for such operation
* /
public List getOutputActionArgumentsNames ( ) {
public List < String > getOutputActionArgumentsNames ( ) {
return orderedOutputActionArgumentsNames ;
}
@ -174,11 +174,11 @@ public class ServiceAction {
return name ;
}
private List getListForActionArgument ( List args , String direction ) {
private List < ServiceActionArgument > getListForActionArgument ( List < ServiceActionArgument > args , String direction ) {
if ( args = = null ) return null ;
List < ServiceActionArgument > rtrVal = new ArrayList < ServiceActionArgument > ( ) ;
for ( Iterator itr = args . iterator ( ) ; itr . hasNext ( ) ; ) {
ServiceActionArgument actArg = ( ServiceActionArgument ) itr . next ( ) ;
for ( Iterator < ServiceActionArgument > itr = args . iterator ( ) ; itr . hasNext ( ) ; ) {
ServiceActionArgument actArg = itr . next ( ) ;
if ( actArg . getDirection ( ) = = direction ) {
rtrVal . add ( actArg ) ;
}
@ -187,11 +187,11 @@ public class ServiceAction {
return rtrVal ;
}
private List getListForActionArgumentNames ( List args , String direction ) {
private List < String > getListForActionArgumentNames ( List < ServiceActionArgument > args , String direction ) {
if ( args = = null ) return null ;
List < String > rtrVal = new ArrayList < String > ( ) ;
for ( Iterator itr = args . iterator ( ) ; itr . hasNext ( ) ; ) {
ServiceActionArgument actArg = ( ServiceActionArgument ) itr . next ( ) ;
for ( Iterator < ServiceActionArgument > itr = args . iterator ( ) ; itr . hasNext ( ) ; ) {
ServiceActionArgument actArg = itr . next ( ) ;
if ( actArg . getDirection ( ) = = direction ) {
rtrVal . add ( actArg . getName ( ) ) ;
}