Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.sdmlib.storyboards.util;
  
  
  
  public class KanbanEntryCreator extends EntityFactory
 {
    private final String[] properties = new String[]
    {
       .
    };
    
    @Override
    public String[] getProperties()
    {
       return ;
    }
    
    @Override
    public Object getSendableInstance(boolean reference)
    {
       return new KanbanEntry();
    }
    
    @Override
    public Object getValue(Object targetString attrName)
    {
       int pos=attrName.indexOf(".");
       String attribute = attrName;
 
       if (pos > 0)
       {
          attribute = attrName.substring(0, pos);
       }
       if (..equalsIgnoreCase(attribute))
       {
          return ((KanbanEntry)target).getName();
       }
 
       if (..equalsIgnoreCase(attrName))
       {
          return ((KanbanEntry)target).getLogEntries();
       }
 
       {
          return ((KanbanEntry)target).getOldNoOfLogEntries();
       }
 
       if (..equalsIgnoreCase(attrName))
       {
          return ((KanbanEntry)target).getPhases();
       }
 
       if (..equalsIgnoreCase(attribute))
       {
          return ((KanbanEntry)target).getPhase();
       }
       {
          return ((KanbanEntry)target).getLastDeveloper();
       }
       {
          return ((KanbanEntry)target).getHoursRemaining();
       }
       if (..equalsIgnoreCase(attribute))
       {
          return ((KanbanEntry)target).getHoursSpend();
       }
       if (..equalsIgnoreCase(attribute))
       {
          if (pos > 0)
          {
             return getValue(((KanbanEntry)target).getParent(), attrName.substring(pos + 1));
          }
 
          return ((KanbanEntry)target).getParent();
       }
       if (..equalsIgnoreCase(attribute))
       {
          return ((KanbanEntry)target).getSubentries();
       }
       if (..equalsIgnoreCase(attribute))
       {
          return ((KanbanEntry)target).getFiles();
      }
      return super.getValue(targetattrName);
   }
   
   public boolean setValue(Object targetString attrNameObject valueString type)
   {
      if (..equals(type) && value != null)
      {
         attrName = attrName + type;
      }
      if (..equalsIgnoreCase(attrName)) 
      {
         ((KanbanEntry)target).setName((Stringvalue);
         return true;
      } 
      {
         ((KanbanEntry)target).addToLogEntries((LogEntryStoryBoardvalue);
         return true;
      }
      
      {
         ((KanbanEntry)target).removeFromLogEntries((LogEntryStoryBoardvalue);
         return true;
      }
      {
         ((KanbanEntry)target).setOldNoOfLogEntries(Integer.parseInt(value.toString()));
         return true;
      }
      if (..equalsIgnoreCase(attrName))
      {
         ((KanbanEntry)target).setPhases((Stringvalue);
         return true;
      }
      if (..equalsIgnoreCase(attrName)) 
      {
         ((KanbanEntry)target).setPhase((Stringvalue);
         return true;
      } 
      {
         ((KanbanEntry)target).setLastDeveloper((Stringvalue);
         return true;
      } 
      {
         ((KanbanEntry)target).setHoursRemaining(Double.parseDouble(value.toString()));
         return true;
      } 
      {
         ((KanbanEntry)target).setHoursSpend(Double.parseDouble(value.toString()));
         return true;
      } 
      if (..equalsIgnoreCase(attrName)) 
      {
         ((KanbanEntry)target).setParent((KanbanEntryvalue);
         return true;
      } 
      {
         ((KanbanEntry)target).addToSubentries((KanbanEntryvalue);
         return true;
      } 
      if (..equalsIgnoreCase(attrName)) 
      {
         ((KanbanEntry)target).setFiles((Stringvalue);
         return true;
      }
      return super.setValue(targetattrNamevaluetype);
   }
   
   public static JsonIdMap createIdMap(String sessionID)
   {
      return CreatorCreator.createIdMap(sessionID);
   }
   
   //==========================================================================
   
   public void removeObject(Object entity)
   {
      ((KanbanEntryentity).removeYou();
   }
New to GrepCode? Check out our FAQ X