test_class.file: model/src/test/java/com/abiquo/server/core/cloud/chef/RunlistElementTest.java
test_class.identifier: RunlistElementTest
test_class.superclass: extends DefaultEntityTestBase<RunlistElement>
test_case.body: @Test
      public void testIsCookBook()
      {
          RunlistElement recipe = createUniqueEntity();
  
          recipe.setName("recipe[]");
          assertFalse(recipe.isCookbook());
  
          recipe.setName("recipe[:]");
          assertTrue(recipe.isCookbook());
  
          recipe.setName("recipe[testcookbook]");
          assertTrue(recipe.isCookbook());
  
          recipe.setName("recipe[::]");
          assertFalse(recipe.isCookbook());
  
          recipe.setName("recipe[test::recipe]");
          assertFalse(recipe.isCookbook());
      }
test_case.class_method_signature: RunlistElementTest.testIsCookBook()
test_case.full_signature: @Test public void testIsCookBook()
test_case.identifier: testIsCookBook
test_case.invocations: createUniqueEntity setName assertFalse isCookbook setName assertTrue isCookbook setName assertTrue isCookbook setName assertFalse isCookbook setName assertFalse isCookbook
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIsCookBook()
focal_class.declarator: TABLE_NAME = "chef_runlist"
focal_class.modifier: public static final
focal_class.original_string: public static final String TABLE_NAME = "chef_runlist";
focal_class.type: String
focal_class.var_name: TABLE_NAME
focal_class.declarator: ID_COLUMN = "id"
focal_class.modifier: private final static
focal_class.original_string: private final static String ID_COLUMN = "id";
focal_class.type: String
focal_class.var_name: ID_COLUMN
focal_class.declarator: id
focal_class.modifier: @Id
      @GeneratedValue
      @Column(name = ID_COLUMN, nullable = false)
      private
focal_class.original_string: @Id
      @GeneratedValue
      @Column(name = ID_COLUMN, nullable = false)
      private Integer id;
focal_class.type: Integer
focal_class.var_name: id
focal_class.declarator: VIRTUALMACHINE_PROPERTY = "virtualMachine"
focal_class.modifier: public final static
focal_class.original_string: public final static String VIRTUALMACHINE_PROPERTY = "virtualMachine";
focal_class.type: String
focal_class.var_name: VIRTUALMACHINE_PROPERTY
focal_class.declarator: VIRTUALMACHINE_REQUIRED = true
focal_class.modifier: private final static
focal_class.original_string: private final static boolean VIRTUALMACHINE_REQUIRED = true;
focal_class.type: boolean
focal_class.var_name: VIRTUALMACHINE_REQUIRED
focal_class.declarator: VIRTUALMACHINE_ID_COLUMN = "idVM"
focal_class.modifier: private final static
focal_class.original_string: private final static String VIRTUALMACHINE_ID_COLUMN = "idVM";
focal_class.type: String
focal_class.var_name: VIRTUALMACHINE_ID_COLUMN
focal_class.declarator: virtualMachine
focal_class.modifier: @JoinColumn(name = VIRTUALMACHINE_ID_COLUMN)
      @ManyToOne(fetch = FetchType.LAZY)
      @ForeignKey(name = "FK_" + TABLE_NAME + "_virtualmachine")
      private
focal_class.original_string: @JoinColumn(name = VIRTUALMACHINE_ID_COLUMN)
      @ManyToOne(fetch = FetchType.LAZY)
      @ForeignKey(name = "FK_" + TABLE_NAME + "_virtualmachine")
      private VirtualMachine virtualMachine;
focal_class.type: VirtualMachine
focal_class.var_name: virtualMachine
focal_class.declarator: NAME_PROPERTY = "name"
focal_class.modifier: public final static
focal_class.original_string: public final static String NAME_PROPERTY = "name";
focal_class.type: String
focal_class.var_name: NAME_PROPERTY
focal_class.declarator: NAME_REQUIRED = true
focal_class.modifier: private final static
focal_class.original_string: private final static boolean NAME_REQUIRED = true;
focal_class.type: boolean
focal_class.var_name: NAME_REQUIRED
focal_class.declarator: NAME_LENGTH_MIN = 1
focal_class.modifier: final static
focal_class.original_string: final static int NAME_LENGTH_MIN = 1;
focal_class.type: int
focal_class.var_name: NAME_LENGTH_MIN
focal_class.declarator: NAME_LENGTH_MAX = 100
focal_class.modifier: final static
focal_class.original_string: final static int NAME_LENGTH_MAX = 100;
focal_class.type: int
focal_class.var_name: NAME_LENGTH_MAX
focal_class.declarator: NAME_LEADING_OR_TRAILING_WHITESPACES_ALLOWED = false
focal_class.modifier: private final static
focal_class.original_string: private final static boolean NAME_LEADING_OR_TRAILING_WHITESPACES_ALLOWED = false;
focal_class.type: boolean
focal_class.var_name: NAME_LEADING_OR_TRAILING_WHITESPACES_ALLOWED
focal_class.declarator: NAME_COLUMN = "name"
focal_class.modifier: private final static
focal_class.original_string: private final static String NAME_COLUMN = "name";
focal_class.type: String
focal_class.var_name: NAME_COLUMN
focal_class.declarator: name
focal_class.modifier: @Column(name = NAME_COLUMN, nullable = !NAME_REQUIRED, length = NAME_LENGTH_MAX)
      private
focal_class.original_string: @Column(name = NAME_COLUMN, nullable = !NAME_REQUIRED, length = NAME_LENGTH_MAX)
      private String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: DESCRIPTION_PROPERTY = "description"
focal_class.modifier: public final static
focal_class.original_string: public final static String DESCRIPTION_PROPERTY = "description";
focal_class.type: String
focal_class.var_name: DESCRIPTION_PROPERTY
focal_class.declarator: DESCRIPTION_REQUIRED = false
focal_class.modifier: private final static
focal_class.original_string: private final static boolean DESCRIPTION_REQUIRED = false;
focal_class.type: boolean
focal_class.var_name: DESCRIPTION_REQUIRED
focal_class.declarator: DESCRIPTION_LENGTH_MIN = 0
focal_class.modifier: final static
focal_class.original_string: final static int DESCRIPTION_LENGTH_MIN = 0;
focal_class.type: int
focal_class.var_name: DESCRIPTION_LENGTH_MIN
focal_class.declarator: DESCRIPTION_LENGTH_MAX = 255
focal_class.modifier: final static
focal_class.original_string: final static int DESCRIPTION_LENGTH_MAX = 255;
focal_class.type: int
focal_class.var_name: DESCRIPTION_LENGTH_MAX
focal_class.declarator: DESCRIPTION_LEADING_OR_TRAILING_WHITESPACES_ALLOWED = false
focal_class.modifier: private final static
focal_class.original_string: private final static boolean DESCRIPTION_LEADING_OR_TRAILING_WHITESPACES_ALLOWED = false;
focal_class.type: boolean
focal_class.var_name: DESCRIPTION_LEADING_OR_TRAILING_WHITESPACES_ALLOWED
focal_class.declarator: DESCRIPTION_COLUMN = "description"
focal_class.modifier: private final static
focal_class.original_string: private final static String DESCRIPTION_COLUMN = "description";
focal_class.type: String
focal_class.var_name: DESCRIPTION_COLUMN
focal_class.declarator: description
focal_class.modifier: @Column(name = DESCRIPTION_COLUMN, nullable = !DESCRIPTION_REQUIRED, length = DESCRIPTION_LENGTH_MAX)
      private
focal_class.original_string: @Column(name = DESCRIPTION_COLUMN, nullable = !DESCRIPTION_REQUIRED, length = DESCRIPTION_LENGTH_MAX)
      private String description;
focal_class.type: String
focal_class.var_name: description
focal_class.declarator: PRIORITY_PROPERTY = "priority"
focal_class.modifier: public final static
focal_class.original_string: public final static String PRIORITY_PROPERTY = "priority";
focal_class.type: String
focal_class.var_name: PRIORITY_PROPERTY
focal_class.declarator: PRIORITY_COLUMN = "priority"
focal_class.modifier: final static
focal_class.original_string: final static String PRIORITY_COLUMN = "priority";
focal_class.type: String
focal_class.var_name: PRIORITY_COLUMN
focal_class.declarator: PRIORITY_MIN = 0
focal_class.modifier: final static
focal_class.original_string: final static int PRIORITY_MIN = 0;
focal_class.type: int
focal_class.var_name: PRIORITY_MIN
focal_class.declarator: PRIORITY_MAX = Integer.MAX_VALUE
focal_class.modifier: final static
focal_class.original_string: final static int PRIORITY_MAX = Integer.MAX_VALUE;
focal_class.type: int
focal_class.var_name: PRIORITY_MAX
focal_class.declarator: PRIORITY_REQUIRED = true
focal_class.modifier: final static
focal_class.original_string: final static boolean PRIORITY_REQUIRED = true;
focal_class.type: boolean
focal_class.var_name: PRIORITY_REQUIRED
focal_class.declarator: priority
focal_class.modifier: @Column(name = PRIORITY_COLUMN, nullable = false)
      @Range(min = PRIORITY_MIN, max = PRIORITY_MAX)
      private
focal_class.original_string: @Column(name = PRIORITY_COLUMN, nullable = false)
      @Range(min = PRIORITY_MIN, max = PRIORITY_MAX)
      private int priority;
focal_class.type: int
focal_class.var_name: priority
focal_class.file: model/src/main/java/com/abiquo/server/core/cloud/chef/RunlistElement.java
focal_class.identifier: RunlistElement
focal_class.class_method_signature: RunlistElement.RunlistElement()
focal_class.full_signature: protected  RunlistElement()
focal_class.identifier: RunlistElement
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  RunlistElement()
focal_class.class_method_signature: RunlistElement.RunlistElement(final String name, final String description, final int priority)
focal_class.full_signature: public  RunlistElement(final String name, final String description, final int priority)
focal_class.identifier: RunlistElement
focal_class.modifiers: public
focal_class.parameters: (final String name, final String description, final int priority)
focal_class.signature:  RunlistElement(final String name, final String description, final int priority)
focal_class.class_method_signature: RunlistElement.getId()
focal_class.full_signature: @Override public Integer getId()
focal_class.identifier: getId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Integer
focal_class.signature: Integer getId()
focal_class.class_method_signature: RunlistElement.setId(final Integer id)
focal_class.full_signature: public void setId(final Integer id)
focal_class.identifier: setId
focal_class.modifiers: public
focal_class.parameters: (final Integer id)
focal_class.return: void
focal_class.signature: void setId(final Integer id)
focal_class.class_method_signature: RunlistElement.getVirtualMachine()
focal_class.full_signature: @Required(value = VIRTUALMACHINE_REQUIRED) public VirtualMachine getVirtualMachine()
focal_class.identifier: getVirtualMachine
focal_class.modifiers: @Required(value = VIRTUALMACHINE_REQUIRED) public
focal_class.parameters: ()
focal_class.return: VirtualMachine
focal_class.signature: VirtualMachine getVirtualMachine()
focal_class.class_method_signature: RunlistElement.setVirtualMachine(final VirtualMachine virtualMachine)
focal_class.full_signature: public void setVirtualMachine(final VirtualMachine virtualMachine)
focal_class.identifier: setVirtualMachine
focal_class.modifiers: public
focal_class.parameters: (final VirtualMachine virtualMachine)
focal_class.return: void
focal_class.signature: void setVirtualMachine(final VirtualMachine virtualMachine)
focal_class.class_method_signature: RunlistElement.getName()
focal_class.full_signature: @Required(value = NAME_REQUIRED) @Length(min = NAME_LENGTH_MIN, max = NAME_LENGTH_MAX) @LeadingOrTrailingWhitespace(allowed = NAME_LEADING_OR_TRAILING_WHITESPACES_ALLOWED) @RunlistItem public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Required(value = NAME_REQUIRED) @Length(min = NAME_LENGTH_MIN, max = NAME_LENGTH_MAX) @LeadingOrTrailingWhitespace(allowed = NAME_LEADING_OR_TRAILING_WHITESPACES_ALLOWED) @RunlistItem public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: RunlistElement.setName(final String name)
focal_class.full_signature: public void setName(final String name)
focal_class.identifier: setName
focal_class.modifiers: public
focal_class.parameters: (final String name)
focal_class.return: void
focal_class.signature: void setName(final String name)
focal_class.class_method_signature: RunlistElement.getDescription()
focal_class.full_signature: @Required(value = DESCRIPTION_REQUIRED) @Length(min = DESCRIPTION_LENGTH_MIN, max = DESCRIPTION_LENGTH_MAX) @LeadingOrTrailingWhitespace(allowed = DESCRIPTION_LEADING_OR_TRAILING_WHITESPACES_ALLOWED) public String getDescription()
focal_class.identifier: getDescription
focal_class.modifiers: @Required(value = DESCRIPTION_REQUIRED) @Length(min = DESCRIPTION_LENGTH_MIN, max = DESCRIPTION_LENGTH_MAX) @LeadingOrTrailingWhitespace(allowed = DESCRIPTION_LEADING_OR_TRAILING_WHITESPACES_ALLOWED) public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDescription()
focal_class.class_method_signature: RunlistElement.setDescription(final String description)
focal_class.full_signature: public void setDescription(final String description)
focal_class.identifier: setDescription
focal_class.modifiers: public
focal_class.parameters: (final String description)
focal_class.return: void
focal_class.signature: void setDescription(final String description)
focal_class.class_method_signature: RunlistElement.getPriority()
focal_class.full_signature: @Required(value = PRIORITY_REQUIRED) public int getPriority()
focal_class.identifier: getPriority
focal_class.modifiers: @Required(value = PRIORITY_REQUIRED) public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPriority()
focal_class.class_method_signature: RunlistElement.setPriority(final int priority)
focal_class.full_signature: public void setPriority(final int priority)
focal_class.identifier: setPriority
focal_class.modifiers: public
focal_class.parameters: (final int priority)
focal_class.return: void
focal_class.signature: void setPriority(final int priority)
focal_class.class_method_signature: RunlistElement.isCookbook()
focal_class.full_signature: public boolean isCookbook()
focal_class.identifier: isCookbook
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isCookbook()
focal_class.class_method_signature: RunlistElement.isRecipe()
focal_class.full_signature: public boolean isRecipe()
focal_class.identifier: isRecipe
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRecipe()
focal_class.class_method_signature: RunlistElement.isRole()
focal_class.full_signature: public boolean isRole()
focal_class.identifier: isRole
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRole()
focal_class.class_method_signature: RunlistElement.getRecipeName()
focal_class.full_signature: public String getRecipeName()
focal_class.identifier: getRecipeName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRecipeName()
focal_class.class_method_signature: RunlistElement.getRoleName()
focal_class.full_signature: public String getRoleName()
focal_class.identifier: getRoleName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRoleName()
focal_class.class_method_signature: RunlistElement.getType()
focal_class.full_signature: public Type getType()
focal_class.identifier: getType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Type
focal_class.signature: Type getType()
focal_class.superclass: extends DefaultEntityBase
focal_method.body: public boolean isCookbook()
      {
          return isRecipe() && !getRecipeName().contains("::");
      }
focal_method.class_method_signature: RunlistElement.isCookbook()
focal_method.full_signature: public boolean isCookbook()
focal_method.identifier: isCookbook
focal_method.invocations: isRecipe contains getRecipeName
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean isCookbook()