|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tools.offline.browse.RepositoryFinder
public class RepositoryFinder
The finder that handles a given repository file.
Field Summary | |
---|---|
protected java.io.File |
file
|
protected static org.apache.oro.text.regex.Perl5Compiler |
pcompiler
|
protected static org.apache.oro.text.regex.Perl5Matcher |
pmatcher
|
protected java.lang.String |
repository_dir
The relative directory name of the repository in the store |
protected java.lang.String |
repository_name
The repository name in the repository directory |
protected ResourceLister |
rl
A resource lister instance that handles the repository resources |
protected Serializer |
serializer
|
protected java.lang.String |
store_dir
The store directory (relative to current path) |
Constructor Summary | |
---|---|
RepositoryFinder(java.lang.String storedir,
java.lang.String repname)
Initializes the finder. |
Method Summary | |
---|---|
AttributeHolder |
getAttributeHolder(java.lang.String identifier)
find a given resource |
AttributeHolder[] |
getAttributeHolders()
|
java.lang.String |
getRep()
|
void |
writeHolders()
write changes into a tmp file and then commit to the real file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String repository_dir
protected java.lang.String repository_name
protected java.lang.String store_dir
protected ResourceLister rl
protected java.io.File file
protected Serializer serializer
protected static org.apache.oro.text.regex.Perl5Matcher pmatcher
protected static org.apache.oro.text.regex.Perl5Compiler pcompiler
Constructor Detail |
---|
public RepositoryFinder(java.lang.String storedir, java.lang.String repname) throws InvalidStoreException
storedir
- the store directory pathrepname
- the repository filename.
InvalidStoreException
Method Detail |
---|
public AttributeHolder getAttributeHolder(java.lang.String identifier)
identifier
- the name of the resource to find
public AttributeHolder[] getAttributeHolders()
public java.lang.String getRep()
public void writeHolders()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |