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.independent;
 
This item stores results from checking the contents of an XML file.

Author(s):
Akihito Nakamura, AIST
Version:
$Id: XmlfileContentItem.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
 public class XmlfileContentItem
     extends ItemType
 {
 
     private EntityItemStringType  filepath;
     //{0..1}
 
     private EntityItemStringType  path;
     //{0..1}
 
     private EntityItemStringType  filename;
     //{0..1}
 
     private EntityItemStringType  xpath;
     //{0..1}
 
     //{0..*}
 
     //{0..1}
 


    
Constructor.
 
     public XmlfileContentItem()
     {
         this( 0 );
     }
 
 
     public XmlfileContentItem(
                     final int id
                     )
     {
         superid );
 
 //        _oval_platform_type = OvalPlatformType.independent;
 //        _oval_component_type = OvalComponentType.xmlfilecontent;
          = .;
     }



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



    
    public void setPath(
                    final EntityItemStringType path
                    )
    {
        this. = path;
    }
    public EntityItemStringType getPath()
    {
        return ;
    }



    
    public void setFilename(
                    final EntityItemStringType filename
                    )
    {
        this. = filename;
    }
    {
        return ;
    }



    
    public void setXpath(
                    final EntityItemStringType xpath
                    )
    {
        this. = xpath;
    }
    {
        return ;
    }



    
    public void setValueOf(
                    final Collection<? extends EntityItemAnySimpleTypevalue_ofs
                    )
    {
        if ( != value_ofs) {
            .clear();
            if (value_ofs != null  &&  value_ofs.size() > 0) {
                for (EntityItemAnySimpleType  result : value_ofs) {
                    addValueOfresult );
                }
            }
        }
    }
    public boolean addValueOf(
                    final EntityItemAnySimpleType value_of
                    )
    {
        if (value_of == null) {
            throw new IllegalArgumentException"empty value_of" );
        }
        return this..addvalue_of );
    }
    {
        return ;
    }
    {
        return .iterator();
    }



    
    public void setWindowsView(
                    final EntityItemWindowsViewType windows_view
                    )
    {
        this. = windows_view;
    }
    {
        return ;
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public int hashCode()
    {
        return super.hashCode();
    }
    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (!(obj instanceof XmlfileContentItem)) {
            return false;
        }
        return super.equalsobj );
    }
    @Override
    public String toString()
    {
        return "xmlfilecontent_item[" + super.toString()
                        + ", filepath="     + getFilepath()
                        + ", path="         + getPath()
                        + ", filename="     + getFilename()
                        + ", xpath="        + getXpath()
                        + ", value_of="     + getValueOf()
                        + ", windows_view=" + getWindowsView()
                        + "]";
    }
//XmlfileContentItem
New to GrepCode? Check out our FAQ X