org.apache.lenya.cms.repository
Class SourceNodeMetaData

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.repository.SourceNodeMetaData
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, org.apache.lenya.cms.metadata.MetaData

public class SourceNodeMetaData
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.lenya.cms.metadata.MetaData

Source-node-based meta data.


Constructor Summary
SourceNodeMetaData(java.lang.String namespaceUri, SourceNodeMetaDataHandler handler, org.apache.avalon.framework.service.ServiceManager manager)
          Ctor.
 
Method Summary
 void addValue(java.lang.String key, java.lang.String value)
           
protected  java.util.Set availableKeys()
           
protected  void checkKey(java.lang.String key)
           
 void forcedReplaceBy(org.apache.lenya.cms.metadata.MetaData other)
           
 java.lang.String[] getAvailableKeys()
           
 org.apache.lenya.cms.metadata.ElementSet getElementSet()
           
 java.lang.String getFirstValue(java.lang.String key)
           
protected  SourceNodeMetaDataHandler getHandler()
           
 long getLastModified()
           
protected  java.lang.String getNamespaceUri()
           
 java.lang.String[] getPossibleKeys()
           
 java.lang.String[] getValues(java.lang.String key)
           
 boolean isValidAttribute(java.lang.String key)
           
 void removeAllValues(java.lang.String key)
           
 void replaceBy(org.apache.lenya.cms.metadata.MetaData other)
           
protected  void replaceBy(org.apache.lenya.cms.metadata.MetaData other, org.apache.lenya.cms.metadata.Element element)
           
 void setValue(java.lang.String key, java.lang.String value)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceNodeMetaData

public SourceNodeMetaData(java.lang.String namespaceUri,
                          SourceNodeMetaDataHandler handler,
                          org.apache.avalon.framework.service.ServiceManager manager)
Ctor.

Parameters:
namespaceUri - The namespace URI.
handler - The meta data handler.
manager - The service manager.
Method Detail

getNamespaceUri

protected java.lang.String getNamespaceUri()

getHandler

protected SourceNodeMetaDataHandler getHandler()

getElementSet

public org.apache.lenya.cms.metadata.ElementSet getElementSet()
Specified by:
getElementSet in interface org.apache.lenya.cms.metadata.MetaData

getValues

public java.lang.String[] getValues(java.lang.String key)
                             throws org.apache.lenya.cms.metadata.MetaDataException
Specified by:
getValues in interface org.apache.lenya.cms.metadata.MetaData
Throws:
org.apache.lenya.cms.metadata.MetaDataException

getFirstValue

public java.lang.String getFirstValue(java.lang.String key)
                               throws org.apache.lenya.cms.metadata.MetaDataException
Specified by:
getFirstValue in interface org.apache.lenya.cms.metadata.MetaData
Throws:
org.apache.lenya.cms.metadata.MetaDataException

availableKeys

protected java.util.Set availableKeys()

getAvailableKeys

public java.lang.String[] getAvailableKeys()
Specified by:
getAvailableKeys in interface org.apache.lenya.cms.metadata.MetaData

checkKey

protected void checkKey(java.lang.String key)
                 throws org.apache.lenya.cms.metadata.MetaDataException
Throws:
org.apache.lenya.cms.metadata.MetaDataException

setValue

public void setValue(java.lang.String key,
                     java.lang.String value)
              throws org.apache.lenya.cms.metadata.MetaDataException
Specified by:
setValue in interface org.apache.lenya.cms.metadata.MetaData
Throws:
org.apache.lenya.cms.metadata.MetaDataException

addValue

public void addValue(java.lang.String key,
                     java.lang.String value)
              throws org.apache.lenya.cms.metadata.MetaDataException
Specified by:
addValue in interface org.apache.lenya.cms.metadata.MetaData
Throws:
org.apache.lenya.cms.metadata.MetaDataException

replaceBy

public void replaceBy(org.apache.lenya.cms.metadata.MetaData other)
               throws org.apache.lenya.cms.metadata.MetaDataException
Specified by:
replaceBy in interface org.apache.lenya.cms.metadata.MetaData
Throws:
org.apache.lenya.cms.metadata.MetaDataException

replaceBy

protected void replaceBy(org.apache.lenya.cms.metadata.MetaData other,
                         org.apache.lenya.cms.metadata.Element element)
                  throws org.apache.lenya.cms.metadata.MetaDataException
Throws:
org.apache.lenya.cms.metadata.MetaDataException

forcedReplaceBy

public void forcedReplaceBy(org.apache.lenya.cms.metadata.MetaData other)
                     throws org.apache.lenya.cms.metadata.MetaDataException
Specified by:
forcedReplaceBy in interface org.apache.lenya.cms.metadata.MetaData
Throws:
org.apache.lenya.cms.metadata.MetaDataException

getPossibleKeys

public java.lang.String[] getPossibleKeys()
Specified by:
getPossibleKeys in interface org.apache.lenya.cms.metadata.MetaData

isValidAttribute

public boolean isValidAttribute(java.lang.String key)
Specified by:
isValidAttribute in interface org.apache.lenya.cms.metadata.MetaData

getLastModified

public long getLastModified()
                     throws org.apache.lenya.cms.metadata.MetaDataException
Specified by:
getLastModified in interface org.apache.lenya.cms.metadata.MetaData
Throws:
org.apache.lenya.cms.metadata.MetaDataException

removeAllValues

public void removeAllValues(java.lang.String key)
                     throws org.apache.lenya.cms.metadata.MetaDataException
Specified by:
removeAllValues in interface org.apache.lenya.cms.metadata.MetaData
Throws:
org.apache.lenya.cms.metadata.MetaDataException


Copyright $ Apache Software Foundation. All Rights Reserved.