public abstract class Pattern extends Object
A hash map returned by Pattern#getPatternHash stores the pattern attributes. You can call
Element.getPattern() to obtain the Pattern instance
based on the resource ID.
| 构造器 | 说明 |
|---|---|
Pattern() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
abstract Pattern |
getCombinedPattern(Pattern child) |
Obtains a combined pattern formed by this
Pattern and another pattern, which will act as a child pattern. |
abstract HashMap<String,TypedAttribute> |
getPatternHash() |
Obtains the hash map of this
Pattern. |
abstract HashMap<String,TypedAttribute> |
getPatternHash(String[] selected) |
Obtains a hash map that contains selected attributes of this
Pattern. |
abstract void |
set(Pattern pattern) |
Sets this
Pattern to hold all the attribute values of an existing Pattern instance. |
public abstract HashMap<String,TypedAttribute> getPatternHash()
Pattern.
The hash map stores the pattern attributes, containing the pattern names as keys and associated
TypedAttribute as values.Pattern.public abstract Pattern getCombinedPattern(Pattern child)
Pattern and another pattern, which will act as a child pattern.
The attributes of the child pattern will overwrite those of this Pattern.
child - Indicates the child pattern.public abstract void set(Pattern pattern)
Pattern to hold all the attribute values of an existing Pattern instance.pattern - Indicates the Pattern instance whose attribute values are to be assigned to this
Pattern.public abstract HashMap<String,TypedAttribute> getPatternHash(String[] selected)
Pattern.selected - Indicates the set of selected attribute names.Pattern.