org.apache.shindig.gadgets.spec
Class Icon

java.lang.Object
  extended by org.apache.shindig.gadgets.spec.Icon

public class Icon
extends Object

Represents a ModuleSpec.Icon tag. TODO: Support substitution


Constructor Summary
Icon(Element element)
          Currently does not validate icon data.
 
Method Summary
 String getContent()
           
 String getMode()
           
 String getType()
           
 Icon substitute(Substitutions substituter)
          Substitutes the icon fields according to the spec.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Icon

public Icon(Element element)
     throws SpecParserException
Currently does not validate icon data.

Parameters:
element -
Throws:
SpecParserException
Method Detail

getMode

public String getMode()

getType

public String getType()

getContent

public String getContent()

substitute

public Icon substitute(Substitutions substituter)
Substitutes the icon fields according to the spec.

Parameters:
substituter -
Returns:
The substituted icon

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012. All Rights Reserved.