Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BodyTag Interface

 
Manju Devarla
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<tag>
<name>SmilyTag</name>
<tag-class>com.enthuware.ctags.SmilyTag</tag-class>
<description>Replaces emoticons such as , , and with images.
</description>
<body-content>tagdependent</body-content>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>


Which of the following statements regarding the above tag are correct?Select 2 correct options.

A.It is an empty tag.
B.It may be used as an empty tag.
C.It must have a body
D.It must implement BodyTag interface.
E.It may take an attribute named 'name'. But if present, its value must be dynamic.

Ans given are B and D
But
How can we say that, It must implement Body Tag Interface
by seeing the above code..?
 
warren li
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To me, only B is correct. It could implement any of SimpleTag, IterationTag or BodyTag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic