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;
 
The plist object is used by a plist_test to define the preference keys to collect and where to look for them.

Deprecated:
Deprecated as of version 5.10: Replaced by the plist510 object and will be removed in a future version of the language.
Author(s):
Akihito Nakamura, AIST
Version:
$Id: PlistObject.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
 public class PlistObject
     extends SystemObjectType
 {
 
     //TODO: XSD model
 
     private Set  set;
     //{1..1}
 
 
     private EntityObjectStringType  key;
 //    private EntityObjectStringType  key = new EntityObjectStringType();
     //{1..1, nillable="true"}
 
     private EntityObjectStringType  app_id;
     //{1..1}
 
     private EntityObjectStringType  filepath;
     //{1..1}
 
     private final Collection<Filter>  filter = new ArrayList<Filter>();
     //{0..*}
 


    
Constructor.
 
     public PlistObject()
     {
         thisnull, 0 );
     }
 
 
     public PlistObject(
                     final String id,
                     final int version
                     )
     {
         superidversion );
 
          = .;
          = .;
     }
 
 
 //    public FileObject(
 //                    final String id,
 //                    final int version,
 //                    final String comment
 //                    )
 //    {
 //        super( id, version, comment );
 //    }
//
//
//    public FileObject(
//                    final String id,
//                    final int version,
//                    final String path,
//                    final String filename
//                    )
//    {
//        this( id, version,
//                        new EntityObjectStringType( path ),
//                        new EntityObjectStringType( filename )
//        );
//    }
//
//
//    public FileObject(
//                    final String id,
//                    final int version,
//                    final EntityObjectStringType path,
//                    final EntityObjectStringType filename
//                    )
//    {
//        super( id, version );
//        setPath( path );
//        setFilename( filename );
//    }



    
    public void setSet(
                    final Set set
                    )
    {
        this. = set;
    }
    public Set getSet()
    {
        return ;
    }



    
    public void setKey(
                    final EntityObjectStringType key
                    )
    {
        this. = key;
    }
    {
        return ;
    }



    
    public void setAppId(
                    final EntityObjectStringType app_id
                    )
    {
        this. = app_id;
    }
    {
        return ;
    }



    
    public void setFilepath(
                    final EntityObjectStringType filepath
                    )
    {
        this. = filepath;
    }
    {
        return ;
    }



    
    public void setFilter(
                    final Collection<? extends Filterfilter_list
                    )
    {
        if ( != filter_list) {
            .clear();
            if (filter_list != null  &&  filter_list.size() > 0) {
                .addAllfilter_list );
            }
        }
    }
    public boolean addFilter(
                    final Filter filter
                    )
    {
        if (filter == null) {
            return false;
        }
        return this..addfilter );
    }
    public Collection<FiltergetFilter()
    {
        return ;
    }
    public Iterator<FilteriterateFilter()
    {
        return .iterator();
    }
    //*********************************************************************
    //  DefinitionsElement
    //*********************************************************************
    @Override
    {
        Collection<ElementRef>  ref_list = new ArrayList<ElementRef>();
        ref_list.addgetKey() );
        ref_list.addgetAppId() );
        ref_list.addgetFilepath() );
        ref_list.addAllgetFilter() );
        return ref_list;
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public int hashCode()
    {
        return super.hashCode();
    }
    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (!(obj instanceof PlistObject)) {
            return false;
        }
        return super.equalsobj );
    }
    @Override
    public String toString()
    {
        return "plist_object[" + super.toString()
                        + ", set=" 			+ getSet()
                        + ", filepath="getKey()
                        + ", path=" 		+ getAppId()
                        + ", filename=" 	+ getFilepath()
                        + ", filter=" 		+ getFilter()
                        + "]";
    }
//
New to GrepCode? Check out our FAQ X