Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.sdmlib.storyboards.util;
  
  
  
 public class StoryboardCreator extends EntityFactory
 {
    private final String[] properties = new String[]
    {
    };
    
    @Override
    public String[] getProperties()
    {
       return ;
    }
    
    @Override
    public Object getSendableInstance(boolean reference)
    {
       return new Storyboard(null);
    }
    
    @Override
    public Object getValue(Object targetString attrName)
    {
       if (..equalsIgnoreCase(attrName))
       {
          return ((Storyboardtarget).getRootDir();
       }
 
       if (..equalsIgnoreCase(attrName))
       {
          return ((Storyboardtarget).getStepCounter();
       }
 
       {
          return ((Storyboardtarget).getStepDoneCounter();
       }
 
 //      if (Storyboard.PROPERTY_WALL.equalsIgnoreCase(attrName))
 //      {
 //         return ((Storyboard) target).getWall();
 //      }
 
       {
          return ((Storyboardtarget).getStoryboardSteps();
       }
 
       if (..equalsIgnoreCase(attrName))
       {
          return ((Storyboardtarget).getWall();
       }
 
       return super.getValue(targetattrName);
    }
    
    @Override
    public boolean setValue(Object targetString attrNameObject valueString type)
    {
       if (..equals(type) && value != null)
       {
          attrName = attrName + type;
       }
 
       if (..equalsIgnoreCase(attrName))
       {
          ((Storyboardtarget).setRootDir((Stringvalue);
          return true;
       }
 
       if (..equalsIgnoreCase(attrName))
       {
          ((Storyboardtarget).setStepCounter(Integer.parseInt(value.toString()));
          return true;
       }
 
       {
          ((Storyboardtarget).setStepDoneCounter(Integer.parseInt(value.toString()));
          return true;
       }
 
 //      if (Storyboard.PROPERTY_WALL.equalsIgnoreCase(attrName))
 //      {
 //         ((Storyboard) target).setWall((StoryboardWall) value);
 //         return true;
 //      }
      {
         ((Storyboardtarget).addToStoryboardSteps((StoryboardStepvalue);
         return true;
      }
      
      {
         ((Storyboardtarget).removeFromStoryboardSteps((StoryboardStepvalue);
         return true;
      }
      if (..equalsIgnoreCase(attrName))
      {
         ((Storyboardtarget).setWall((StoryboardWallvalue);
         return true;
      }
      return super.setValue(targetattrNamevaluetype);
   }
   
   public static JsonIdMap createIdMap(String sessionID)
   {
      return CreatorCreator.createIdMap(sessionID);
   }
   
   //==========================================================================
   
   public void removeObject(Object entity)
   {
      ((Storyboardentity).removeYou();
   }
New to GrepCode? Check out our FAQ X