net.sourceforge.pmd.util.viewer.model

Class AttributeToolkit

public class AttributeToolkit extends Object

A toolkit for vaious attribute translations

Version: $Id: AttributeToolkit.java 4710 2006-10-20 02:40:14Z hooperbloob $

Author: Boris Gruschko ( boris at gruschko.org )

Method Summary
static StringconstructPredicate(Attribute attribute)
constructs a predicate from the given attribute
static StringformatValueForXPath(Attribute attribute)
formats a value for its usage in XPath expressions

Method Detail

constructPredicate

public static String constructPredicate(Attribute attribute)
constructs a predicate from the given attribute

Parameters: attribute attribute to be formatted as predicate

Returns: predicate

formatValueForXPath

public static String formatValueForXPath(Attribute attribute)
formats a value for its usage in XPath expressions

Parameters: attribute atribute which value should be formatted

Returns: formmated value