org.openprivacy.reptile.extensions.om
Class ChannelExtension

java.lang.Object
  |
  +--org.openprivacy.reptile.extensions.om.ChannelExtension

public class ChannelExtension
extends java.lang.Object

Version:
$Id: ChannelExtension.java,v 1.10 2002/03/23 21:29:34 burton Exp $
Author:
burtonator

Constructor Summary
ChannelExtension()
           
 
Method Summary
 int count(org.apache.xalan.extensions.XSLProcessorContext context, org.apache.xalan.templates.ElemExtensionCall elem)
          Get the total number of content feeds known.
 java.lang.String getContentType(java.lang.String location)
          Get the content type for this channel's location
 java.lang.String getImage(java.lang.String channel)
          Get the image (URL) for this channel by it's location.
 java.lang.String getTitle(java.lang.String location)
          Get the title for the given location
 boolean isChannel(java.lang.String location)
          Return true if this is in the CHANNEL table.
 boolean isSubscription(java.lang.String location)
          Get the title for the given location
 boolean isSupportedContentType(java.lang.String contentType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelExtension

public ChannelExtension()
Method Detail

count

public int count(org.apache.xalan.extensions.XSLProcessorContext context,
                 org.apache.xalan.templates.ElemExtensionCall elem)
Get the total number of content feeds known.


isSupportedContentType

public boolean isSupportedContentType(java.lang.String contentType)
See Also:
ContentTransformerMap.isSupportedContentType(java.lang.String)

getTitle

public java.lang.String getTitle(java.lang.String location)
Get the title for the given location


isSubscription

public boolean isSubscription(java.lang.String location)
Get the title for the given location


isChannel

public boolean isChannel(java.lang.String location)
Return true if this is in the CHANNEL table.


getContentType

public java.lang.String getContentType(java.lang.String location)
Get the content type for this channel's location


getImage

public java.lang.String getImage(java.lang.String channel)
Get the image (URL) for this channel by it's location. If none was found return a default.