|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tools.offline.browse.ResourceLister
public class ResourceLister
The resource lister class. It acts on resources independently, and perform action on resources and frames as isolated entities.
Field Summary | |
---|---|
protected static org.apache.oro.text.regex.Perl5Compiler |
pcompiler
|
protected static org.apache.oro.text.regex.Perl5Matcher |
pmatcher
|
protected static org.apache.oro.text.perl.Perl5Util |
putil
|
protected static org.apache.oro.text.regex.Pattern |
srPattern
the search and replace pattern. |
Constructor Summary | |
---|---|
ResourceLister()
The resource lister initializer. |
Method Summary | |
---|---|
java.lang.String |
attributeToString(Attribute ad,
java.lang.Object value)
Format into an attribute=value string. |
AttributeHolder[] |
getFramesFromHolder(AttributeHolder ah)
Get frames of an attribute holder. |
java.lang.String |
getIdentFromHolder(AttributeHolder ah)
Search for identifier in an attribute holder. |
java.lang.Integer |
getKeyFromHolder(AttributeHolder ah)
Search for key value in an attribute holder. |
java.lang.String |
getRepositoryFromHolder(AttributeHolder ah)
Search for repository in an attribute holder. |
void |
performAction(java.lang.String action,
AttributeHolder ah,
int deep)
Perform an action on an attribute holder. |
void |
performActionOnFrames(java.lang.String action,
AttributeHolder ah,
int deep)
Perform an action on frames of an attribute holder. |
void |
printAttributeHolder(AttributeHolder ah)
Print all attributes of an AttributeHolder. |
void |
printFrames(AttributeHolder ah)
Print the frames associated to a resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.oro.text.regex.Perl5Matcher pmatcher
protected static org.apache.oro.text.regex.Perl5Compiler pcompiler
protected static org.apache.oro.text.perl.Perl5Util putil
protected static org.apache.oro.text.regex.Pattern srPattern
Constructor Detail |
---|
public ResourceLister()
Method Detail |
---|
public void printAttributeHolder(AttributeHolder ah)
ah
- an AttributeHolder.public java.lang.String attributeToString(Attribute ad, java.lang.Object value)
ad
- an Attributevalue
- its value.
public void printFrames(AttributeHolder ah)
ah
- an AttributeHolderpublic java.lang.Integer getKeyFromHolder(AttributeHolder ah)
ah
- the AttributeHolder
public java.lang.String getIdentFromHolder(AttributeHolder ah)
ah
- the AttributeHolder
public java.lang.String getRepositoryFromHolder(AttributeHolder ah)
ah
- the AttributeHolder
public AttributeHolder[] getFramesFromHolder(AttributeHolder ah)
ah
- the AttributeHolder
public void performActionOnFrames(java.lang.String action, AttributeHolder ah, int deep)
action
- the action to performah
- the AttributeHolderint
- the resource depth wrt the entire action target.public void performAction(java.lang.String action, AttributeHolder ah, int deep)
action
- the action to performah
- the AttributeHolderint
- the resource depth wrt the entire action target.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |