|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.doxia.sink.SinkUtils
public class SinkUtils
Collection of common utility methods for sinks.
Field Summary | |
---|---|
static String[] |
SINK_BASE_ATTRIBUTES
The set of base attributes. |
static String[] |
SINK_BR_ATTRIBUTES
The attributes that are supported for the br tag. |
static String[] |
SINK_HR_ATTRIBUTES
The attributes that are supported for the <hr> tag. |
static String[] |
SINK_IMG_ATTRIBUTES
The attributes that are supported for the <img> tag. |
static String[] |
SINK_LINK_ATTRIBUTES
The attributes that are supported for the <a> tag. |
static String[] |
SINK_SECTION_ATTRIBUTES
The attributes that are supported for the section tags, like <p>, <h2>, <div>. |
static String[] |
SINK_TABLE_ATTRIBUTES
The attributes that are supported for the <table> tag. |
static String[] |
SINK_TD_ATTRIBUTES
The attributes that are supported for the <td> and <th> tags. |
static String[] |
SINK_TR_ATTRIBUTES
The attributes that are supported for the <tr> tag. |
static String[] |
SINK_VERBATIM_ATTRIBUTES
The attributes that are supported for the <div> and <pre> tags. |
Method Summary | |
---|---|
static MutableAttributeSet |
filterAttributes(AttributeSet attributes,
String[] valids)
Filters the given AttributeSet. |
static String |
getAttributeString(AttributeSet att)
Utility method to get an AttributeSet as a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String[] SINK_BASE_ATTRIBUTES
public static final String[] SINK_BR_ATTRIBUTES
public static final String[] SINK_IMG_ATTRIBUTES
public static final String[] SINK_SECTION_ATTRIBUTES
public static final String[] SINK_VERBATIM_ATTRIBUTES
public static final String[] SINK_HR_ATTRIBUTES
public static final String[] SINK_LINK_ATTRIBUTES
public static final String[] SINK_TABLE_ATTRIBUTES
public static final String[] SINK_TD_ATTRIBUTES
public static final String[] SINK_TR_ATTRIBUTES
Method Detail |
---|
public static String getAttributeString(AttributeSet att)
SinkEventAttributes.STYLE
.
All other keys and values are written as Strings.
att
- The AttributeSet. May be null, in which case an empty String is returned.
public static MutableAttributeSet filterAttributes(AttributeSet attributes, String[] valids)
attributes
- The AttributeSet to filter. The String values of Attribute names
are compared to the elements of the valids array.valids
- a sorted array of attribute names that are to be kept in the resulting AttributeSet.
Note: a binary search is employed, so the array has to be sorted for correct results.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |