org.apache.wink.common.model.synd
Class SyndContent

java.lang.Object
  extended by org.apache.wink.common.model.synd.SyndCommonAttributes
      extended by org.apache.wink.common.model.synd.SyndSimpleContent
          extended by org.apache.wink.common.model.synd.SyndContent

public class SyndContent
extends SyndSimpleContent


Field Summary
 
Fields inherited from class org.apache.wink.common.model.synd.SyndSimpleContent
providers, type
 
Constructor Summary
SyndContent()
           
SyndContent(Object value)
          Creates a new SyndContent with the specified value and 'text' type attribute.
SyndContent(Object value, String type)
           
SyndContent(Object value, String type, boolean isSrc)
          Creates a new SyndContent with the specified value or src, and type attribute.
SyndContent(SyndContent other)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getSrc()
           
 String getType()
           
 int hashCode()
           
 void setProviders(javax.ws.rs.ext.Providers _providers)
          Sets the Providers on a local field so that the registry of custom and system providers is available when a client application retrieves the value, expecting it to be seamlessly unmarshalled or converted to the expected type declared in getValue(Class).
 void setSrc(String src)
           
 void setType(String type)
           
 
Methods inherited from class org.apache.wink.common.model.synd.SyndSimpleContent
getValue, getValue, getValue, setValue
 
Methods inherited from class org.apache.wink.common.model.synd.SyndCommonAttributes
getBase, getLang, setBase, setLang
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyndContent

public SyndContent()

SyndContent

public SyndContent(Object value)
Creates a new SyndContent with the specified value and 'text' type attribute.

Parameters:
value - the value of the text construct

SyndContent

public SyndContent(Object value,
                   String type,
                   boolean isSrc)
Creates a new SyndContent with the specified value or src, and type attribute.

Parameters:
value - the value of the text construct, or the value of the src attribute.
type - the type attribute
isSrc - true indicates that the value parameter is the value of the src attribute.

SyndContent

public SyndContent(Object value,
                   String type)

SyndContent

public SyndContent(SyndContent other)
Method Detail

getType

public String getType()

setType

public void setType(String type)

getSrc

public String getSrc()

setSrc

public void setSrc(String src)

hashCode

public int hashCode()
Overrides:
hashCode in class SyndSimpleContent

equals

public boolean equals(Object obj)
Overrides:
equals in class SyndSimpleContent

setProviders

public void setProviders(javax.ws.rs.ext.Providers _providers)
Sets the Providers on a local field so that the registry of custom and system providers is available when a client application retrieves the value, expecting it to be seamlessly unmarshalled or converted to the expected type declared in getValue(Class). Client applications should NOT call this method.



Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.