org.apache.felix.scrplugin.tags.annotation
Class AbstractTag

java.lang.Object
  extended by org.apache.felix.scrplugin.tags.annotation.AbstractTag
All Implemented Interfaces:
JavaTag
Direct Known Subclasses:
ComponentTag, PropertyTag, ReferenceTag, ServiceTag, SlingFilterComponentTag, SlingFilterServiceTag, SlingServletComponentTag, SlingServletPropertyTag, SlingServletServiceTag

public abstract class AbstractTag
extends Object
implements JavaTag

Description of a java tag for components.


Field Summary
protected  JavaClassDescription description
           
protected  JavaField field
           
protected  Map<String,String> parameters
           
protected  com.thoughtworks.qdox.model.Annotation sourceAnnotation
           
 
Constructor Summary
AbstractTag(com.thoughtworks.qdox.model.Annotation sourceAnnotation, JavaClassDescription desc, JavaField field)
           
 
Method Summary
protected abstract  Map<String,String> createNamedParameterMap()
          Create the parameter map.
protected  String emptyToNull(String value)
          Maps an empty or null string value to null
 JavaField getField()
           
 JavaClassDescription getJavaClassDescription()
           
 int getLineNumber()
           
abstract  String getName()
           
 String getNamedParameter(String name)
           
 Map<String,String> getNamedParameterMap()
           
 String[] getParameters()
           
 String getSourceLocation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

protected final JavaClassDescription description

field

protected final JavaField field

sourceAnnotation

protected final com.thoughtworks.qdox.model.Annotation sourceAnnotation

parameters

protected Map<String,String> parameters
Constructor Detail

AbstractTag

public AbstractTag(com.thoughtworks.qdox.model.Annotation sourceAnnotation,
                   JavaClassDescription desc,
                   JavaField field)
Parameters:
desc - Description
field - Field
Method Detail

getNamedParameter

public String getNamedParameter(String name)
Specified by:
getNamedParameter in interface JavaTag
See Also:
JavaTag.getNamedParameter(String)

getParameters

public String[] getParameters()
Specified by:
getParameters in interface JavaTag
See Also:
JavaTag.getParameters()

getSourceLocation

public String getSourceLocation()
Specified by:
getSourceLocation in interface JavaTag
See Also:
JavaTag.getSourceLocation()

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface JavaTag
See Also:
JavaTag.getLineNumber()

getJavaClassDescription

public JavaClassDescription getJavaClassDescription()
Specified by:
getJavaClassDescription in interface JavaTag
See Also:
JavaTag.getJavaClassDescription()

getField

public JavaField getField()
Specified by:
getField in interface JavaTag
See Also:
JavaTag.getField()

emptyToNull

protected String emptyToNull(String value)
Maps an empty or null string value to null

Parameters:
value - String value
Returns:
Non-empty string value or null

getName

public abstract String getName()
Specified by:
getName in interface JavaTag
See Also:
JavaTag.getName()

getNamedParameterMap

public Map<String,String> getNamedParameterMap()
Specified by:
getNamedParameterMap in interface JavaTag
See Also:
JavaTag.getNamedParameterMap()

createNamedParameterMap

protected abstract Map<String,String> createNamedParameterMap()
Create the parameter map.

See Also:
JavaTag.getNamedParameterMap()


Copyright © 2011 Apache Software Foundation. All Rights Reserved.