File Source: AppModuleImpl.java

         /* 
    P/P   *  Method: org.apache.roller.weblogger.webservices.atomprotocol.AppModuleImpl__static_init
          */
     1  /*
     2  * Licensed to the Apache Software Foundation (ASF) under one or more
     3  *  contributor license agreements.  The ASF licenses this file to You
     4  * under the Apache License, Version 2.0 (the "License"); you may not
     5  * use this file except in compliance with the License.
     6  * You may obtain a copy of the License at
     7  *
     8  *     http://www.apache.org/licenses/LICENSE-2.0
     9  *
    10  * Unless required by applicable law or agreed to in writing, software
    11  * distributed under the License is distributed on an "AS IS" BASIS,
    12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  * See the License for the specific language governing permissions and
    14  * limitations under the License.  For additional information regarding
    15  * copyright in this work, please see the NOTICE file in the top level
    16  * directory of this distribution.
    17  */
    18  package org.apache.roller.weblogger.webservices.atomprotocol;
    19  
    20  import com.sun.syndication.feed.module.ModuleImpl;
    21  import java.util.Date;
    22  
    23  public class AppModuleImpl extends ModuleImpl implements AppModule {
    24      private boolean draft = false;
    25      private Date edited = null;
    26      
    27      public AppModuleImpl() {
                 /* 
    P/P           *  Method: void org.apache.roller.weblogger.webservices.atomprotocol.AppModuleImpl()
                  * 
                  *  Postconditions:
                  *    this.draft == 0
                  *    this.edited == null
                  */
    28          super(AppModule.class, AppModule.URI);
    29      }
    30      
    31      public boolean getDraft() {
                 /* 
    P/P           *  Method: bool getDraft()
                  * 
                  *  Preconditions:
                  *    init'ed(this.draft)
                  * 
                  *  Postconditions:
                  *    return_value == this.draft
                  *    init'ed(return_value)
                  */
    32          return draft;
    33      }
    34      
    35      public void setDraft(boolean draft) {
                 /* 
    P/P           *  Method: void setDraft(bool)
                  * 
                  *  Postconditions:
                  *    this.draft == draft
                  *    init'ed(this.draft)
                  */
    36          this.draft = draft;
    37      }
    38      
    39      public Date getEdited() {
                 /* 
    P/P           *  Method: Date getEdited()
                  * 
                  *  Preconditions:
                  *    init'ed(this.edited)
                  * 
                  *  Postconditions:
                  *    return_value == this.edited
                  *    init'ed(return_value)
                  */
    40          return edited;
    41      }
    42  
    43      public void setEdited(Date edited) {
                 /* 
    P/P           *  Method: void setEdited(Date)
                  * 
                  *  Postconditions:
                  *    this.edited == edited
                  *    init'ed(this.edited)
                  */
    44          this.edited = edited;
    45      }
    46      
    47      public Class getInterface() {
                 /* 
    P/P           *  Method: Class getInterface()
                  */
    48          return AppModule.class;
    49      }
    50      
    51      public void copyFrom(Object obj) {
                 /* 
    P/P           *  Method: void copyFrom(Object)
                  * 
                  *  Preconditions:
                  *    obj != null
                  *    init'ed(obj.draft)
                  *    init'ed(obj.edited)
                  * 
                  *  Postconditions:
                  *    this.draft == obj.draft
                  *    init'ed(this.draft)
                  *    this.edited == obj.edited
                  *    init'ed(this.edited)
                  */
    52          AppModule m = (AppModule)obj;
    53          setDraft(m.getDraft());
    54          setEdited(m.getEdited());
    55      }
    56  }








SofCheck Inspector Build Version : 2.18479
AppModuleImpl.java 2009-Jan-02 14:24:54
AppModuleImpl.class 2009-Sep-04 03:12:46