ch.claudio.jars
Class ModelCommon

java.lang.Object
  extended by ch.claudio.jars.ModelCommon

public abstract class ModelCommon
extends java.lang.Object

Hold static methods and fields used in both models

Version:
$Id:$
Author:
Claudio Nieder

Copyright (C) 2008 Claudio Nieder <private@claudio.ch>, CH-8610 Uster

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA


Field Summary
static java.util.regex.Pattern archivePattern
          Pattern of all files which are assumed to contain classes.
 
Constructor Summary
ModelCommon()
           
 
Method Summary
static boolean isLink(java.io.File file)
          Somehow determine if the file is a symbolic link.
static void main(java.lang.String[] args)
          Print license.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

archivePattern

public static final java.util.regex.Pattern archivePattern
Pattern of all files which are assumed to contain classes.

Constructor Detail

ModelCommon

public ModelCommon()
Method Detail

main

public static void main(java.lang.String[] args)
Print license.

Parameters:
args - ignored

isLink

public static boolean isLink(java.io.File file)
Somehow determine if the file is a symbolic link. Does not work if . or .. are contained in the path.

Parameters:
file -
Returns:
true if it is guessed to be a symbolic link.