Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
SIX OVAL - http://code.google.com/p/six-oval/ Copyright (C) 2010 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number: H22PRO-1124 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package jp.go.aist.six.oval.model.macos;
 
An inet listening server item stores the results of checking for network servers currently active on a system.

Deprecated:
Deprecated as of version 5.10: Replaced by the inetlisteningservers510 item.
Author(s):
Akihito Nakamura, AIST
Version:
$Id: InetListeningServersItem.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
     extends ItemType
 {
 
     //{0..1}
     private EntityItemStringType           program_name;
     private EntityItemStringType           local_full_address;
     private EntityItemIntType              local_port;
     private EntityItemStringType           foreign_full_address;
     private EntityItemIntType              foreign_port;
     private EntityItemIntType              pid;
     private EntityItemStringType           protocol;
     private EntityItemIntType              user_id;



    
Constructor.
 
     public InetListeningServersItem()
     {
         this( 0 );
     }
 
 
     public InetListeningServersItem(
                     final int id
                     )
     {
         superid );
 
          = .;
     }



    
 
     public void setLocalAddress(
                     final EntityItemIPAddressStringType local_address
                     )
     {
         this. = local_address;
     }
 
 
     {
         return ;
     }



    
 
     public void setLocalFullAddress(
                    final EntityItemStringType local_full_address
                    )
    {
        this. = local_full_address;
    }
    {
        return ;
    }



    
    public void setLocalPort(
                    final EntityItemIntType local_port
                    )
    {
        this. = local_port;
    }
    {
        return ;
    }



    
    public void setProgramName(
                    final EntityItemStringType program_name
                    )
    {
        this. = program_name;
    }
    {
        return ;
    }



    
    public void setForeignAddress(
                    final EntityItemIPAddressStringType foreign_address
                    )
    {
        this. = foreign_address;
    }
    {
        return ;
    }



    
    public void setForeignFullAddress(
                    final EntityItemStringType foreign_full_address
                    )
    {
        this. = foreign_full_address;
    }
    {
        return ;
    }



    
    public void setForeignPort(
                    final EntityItemIntType foreign_port
                    )
    {
        this. = foreign_port;
    }
    {
        return ;
    }



    
    public void setPid(
                    final EntityItemIntType pid
                    )
    {
        this. = pid;
    }
    public EntityItemIntType getPid()
    {
        return ;
    }



    
    public void setProtocol(
                    final EntityItemStringType protocol
                    )
    {
        this. = protocol;
    }
    {
        return ;
    }



    
    public void setUserId(
                    final EntityItemIntType user_id
                    )
    {
        this. = user_id;
    }
    public EntityItemIntType getUserId()
    {
        return ;
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public String toString()
    {
        return "inetlisteningserver_item[" + super.toString()
                        + ", program_name="         + getProgramName()
                        + ", local_address="        + getLocalAddress()
                        + ", local_full_address="   + getLocalFullAddress()
                        + ", local_port="           + getLocalPort()
                        + ", foreign_address="      + getForeignAddress()
                        + ", foreign_full_address=" + getForeignFullAddress()
                        + ", foreign_port="         + getForeignPort()
                        + ", pid="                  + getPid()
                        + ", protocol="             + getProtocol()
                        + ", user_id="              + getUserId()
             + "]";
    }
//
New to GrepCode? Check out our FAQ X