差分発生行の前後
無視リスト:
更新日時:
2010/05/11 20:15:55 (2 年 前)
更新者:
h
ログメッセージ:

refs #2 #8 #9 #7 #6
現状のソースをコミット。一部完了。一部未完了。
関連づいてない完了チケットのチェンジセットもまとめて。
パッケージ階層も大幅に変更。

パス:
trunk/src/org/rayflood/mikuvat/io/vsq
ファイル:
1 追加
1 移動

凡例:

変更なし
追加
削除
  • trunk/src/org/rayflood/mikuvat/io/vsq/MixerSetting.java

    r2 r4  
    1 package org.rayflood.mikuvat.io; 
    2  
    3 import static org.rayflood.mikuvat.io.VSQDecoder.adjustMaxMin; 
    4 import static org.rayflood.mikuvat.io.VSQDecoder.getBooleanValue; 
    5 import static org.rayflood.mikuvat.io.VSQDecoder.getStringValue; 
     1package org.rayflood.mikuvat.io.vsq; 
     2 
     3import static org.rayflood.mikuvat.Utilities.adjustMaxMin; 
     4import static org.rayflood.mikuvat.Utilities.getBooleanValue; 
     5import static org.rayflood.mikuvat.Utilities.getStringValue; 
    66 
    77import java.io.File; 
     8import java.io.FileNotFoundException; 
     9import java.io.IOException; 
    810import java.util.ArrayList; 
    911import java.util.List; 
    1012 
    11 public class MixerSetting extends ImmutableObject{ 
     13import org.rayflood.mikuvat.io.BaseObject; 
     14import org.rayflood.mikuvat.io.InvalidBaseObjectException; 
     15 
     16public class MixerSetting extends BaseObject{ 
    1217        private static final long serialVersionUID = -4879364127354448647L; 
    1318        private Integer feder; 
     
    4752                } 
    4853 
    49                 StringBuffer sb = new StringBuffer(); 
     54                StringBuilder sb = new StringBuilder(); 
    5055                sb.append("MixerSetting={"); 
    5156                if(!sl.isEmpty()){ 
     
    5964        } 
    6065 
    61         public boolean isReadied(){ 
     66        public boolean validate() throws InvalidBaseObjectException{ 
    6267                boolean ready = true; 
    6368                ready &= hasFeder(); 
     
    6570                ready &= hasMute(); 
    6671                ready &= hasSolo(); 
     72                if(!ready){ 
     73                        throw new InvalidBaseObjectException(this); 
     74                } 
    6775                return ready; 
    6876        } 
    6977 
    70         public int compareTo(ImmutableObject obj){ 
     78        public int compareTo(BaseObject obj){ 
    7179                MixerSetting mixerSetting = (MixerSetting)obj; 
    7280                int c = compare(getFeder(), mixerSetting.getFeder()); 
     
    8391        } 
    8492 
    85         public MixerSetting over(Object obj, boolean fill, boolean has){ 
     93        public MixerSetting over(BaseObject obj, boolean fill, boolean has){ 
    8694                MixerSetting mixerSetting = ((MixerSetting)obj).clone(); 
    8795                if(mixerSetting.hasFeder() && (fill || has == hasFeder())){ 
     
    235243        } 
    236244 
    237         public static MixerSetting load(String file) throws Exception{ 
    238                 return (MixerSetting)ImmutableObject.load(file); 
    239         } 
    240  
    241         public static MixerSetting load(File file) throws Exception{ 
    242                 return (MixerSetting)ImmutableObject.load(file); 
    243         } 
    244  
    245         public void store(String file) throws Exception{ 
     245        public static MixerSetting load(String file) throws FileNotFoundException, IOException, ClassNotFoundException{ 
     246                return (MixerSetting)BaseObject.load(file); 
     247        } 
     248 
     249        public static MixerSetting load(File file) throws FileNotFoundException, IOException, ClassNotFoundException{ 
     250                return (MixerSetting)BaseObject.load(file); 
     251        } 
     252 
     253        public void store(String file) throws FileNotFoundException, IOException{ 
    246254                super.store(file); 
    247255        } 
    248256 
    249         public void store(File file) throws Exception{ 
     257        public void store(File file) throws FileNotFoundException, IOException{ 
    250258                super.store(file); 
    251259        } 
    252260 
    253         public static MixerSetting unzip(String file) throws Exception{ 
    254                 return (MixerSetting)ImmutableObject.unzip(file); 
    255         } 
    256  
    257         public static MixerSetting unzip(File file) throws Exception{ 
    258                 return (MixerSetting)ImmutableObject.unzip(file); 
    259         } 
    260  
    261         public void zip(String file) throws Exception{ 
     261        public static MixerSetting unzip(String file) throws IOException, ClassNotFoundException{ 
     262                return (MixerSetting)BaseObject.unzip(file); 
     263        } 
     264 
     265        public static MixerSetting unzip(File file) throws IOException, ClassNotFoundException{ 
     266                return (MixerSetting)BaseObject.unzip(file); 
     267        } 
     268 
     269        public void zip(String file) throws IOException{ 
    262270                super.zip(file); 
    263271        } 
    264272 
    265         public void zip(File file) throws Exception{ 
     273        public void zip(File file) throws IOException{ 
    266274                super.zip(file); 
    267275        }