001    /*
002     * Copyright (c) 2009 The openGion Project.
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *     http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013     * either express or implied. See the License for the specific language
014     * governing permissions and limitations under the License.
015     */
016    package org.opengion.hayabusa.resource;
017    
018    import org.opengion.hayabusa.common.HybsSystem;
019    
020    /**
021     * ユーザーアクセス画面オブジェクト??な?ユーザーアクセス画面??タを作?します?
022     *
023     * @og.rev 4.1.1.0 (2008/01/22) 新規作?
024     * @og.group リソース管?
025     *
026     * @version  4.1.1.0
027     * @author   Sen.Li
028     * @since    JDK5.0,
029     */
030    public final class FavoriteGUIData {
031    
032            private final String    guiKey          ;               // 画面ID
033            private final int               seqno           ;               // 表示?
034            private final String    name            ;               // 名称(漢?
035            private final String    classify        ;               // ??
036    
037            /**
038             * 引数を?に、FavoriteGUIDataオブジェクトを構築します?
039             *
040             * @param       parmGuiKey      お気に入り画面の画面ID
041             * @param       parmSeqno       お気に入り画面の表示?
042             * @param       parmName        お気に入り画面の名称(漢?
043             * @param       parmClassify    お気に入り画面の??
044             */
045            FavoriteGUIData( final String parmGuiKey,final String parmSeqno,final String parmName,final String parmClassify ) {
046                    guiKey          = parmGuiKey;                                           // 画面ID
047                    seqno           = Integer.parseInt( parmSeqno );        // 表示?
048                    name            = parmName;                                                     // 名称(漢?
049                    classify        = parmClassify;                                         // ??
050            }
051    
052            /**
053             * ユーザーアクセス画面オブジェクト?キーを返します?
054             *
055             * @return ユーザーアクセス画面オブジェクト?キー
056             */
057            public String getGuiKey() { return guiKey; }
058    
059            /**
060             * ユーザーアクセス画面オブジェクト?表示?返します?
061             *
062             * @return ユーザーアクセス画面オブジェクト?表示?
063             */
064            public int getSeqno() { return seqno; }
065    
066            /**
067             * ユーザーアクセス画面オブジェクト?名称(漢?を返します?
068             *
069             * @return ユーザーアクセス画面オブジェクト?名称(漢?
070             */
071            public String getName() { return name; }
072    
073            /**
074             * ユーザーアクセス画面オブジェクト??を返します?
075             *
076             * @return ユーザーアクセス画面オブジェクト???
077             */
078            public String getClassify() { return classify; }
079    
080            /**
081             * オブジェクト?識別子として?詳細なユーザーアクセス画面??を返します?
082             *
083             * @return  詳細なユーザーアクセス画面??
084             */
085            @Override
086            public String toString() {
087                    StringBuilder rtn = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
088                    rtn.append( "guiKey     :" ).append( guiKey      ).append( HybsSystem.CR );
089                    rtn.append( "seqno      :" ).append( seqno       ).append( HybsSystem.CR );
090                    rtn.append( "name       :" ).append( name        ).append( HybsSystem.CR );
091                    rtn.append( "classify   :" ).append( classify    ).append( HybsSystem.CR );
092                    return rtn.toString();
093            }
094    }