|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.command.AssociationWriter
public class AssociationWriter
Class used to write custom associations XML files.
AssociationWriter is an AssociationBuilder that will send
all build messages it receives into an XML stream (as defined in AssociationsXmlConstants).
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_CASE_SENSITIVE
|
static java.lang.String |
ATTRIBUTE_COMMAND
Name of the attribute containing the alias of the command to execute in this association. |
static java.lang.String |
ATTRIBUTE_VALUE
|
static java.lang.String |
ELEMENT_ASSOCIATION
Custom association definition element. |
static java.lang.String |
ELEMENT_IS_EXECUTABLE
|
static java.lang.String |
ELEMENT_IS_HIDDEN
|
static java.lang.String |
ELEMENT_IS_READABLE
|
static java.lang.String |
ELEMENT_IS_SYMLINK
|
static java.lang.String |
ELEMENT_IS_WRITABLE
|
static java.lang.String |
ELEMENT_MASK
|
static java.lang.String |
ELEMENT_ROOT
Root element. |
static java.lang.String |
VALUE_FALSE
|
static java.lang.String |
VALUE_TRUE
|
| Constructor Summary | |
|---|---|
AssociationWriter(java.io.OutputStream stream)
Builds a new writer that will send data to the specified output stream. |
|
| Method Summary | |
|---|---|
void |
endAssociation()
Notifies the builder that the current association declaration is finished. |
void |
endBuilding()
Closes the root XML element. |
void |
setIsExecutable(boolean isExecutable)
Adds a executable filter on the current association. |
void |
setIsHidden(boolean isHidden)
Adds a hidden filter on the current association. |
void |
setIsReadable(boolean isReadable)
Adds a readable filter on the current association. |
void |
setIsSymlink(boolean isSymlink)
Adds a symlink filter on the current association. |
void |
setIsWritable(boolean isWritable)
Adds a writable filter on the current association. |
void |
setMask(java.lang.String mask,
boolean isCaseSensitive)
Adds a mask to the current association. |
void |
startAssociation(java.lang.String command)
Notifies the builder that a new association declaration is starting. |
void |
startBuilding()
Opens the root XML element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ELEMENT_ROOT
public static final java.lang.String ELEMENT_ASSOCIATION
public static final java.lang.String ELEMENT_MASK
public static final java.lang.String ELEMENT_IS_SYMLINK
public static final java.lang.String ELEMENT_IS_HIDDEN
public static final java.lang.String ELEMENT_IS_READABLE
public static final java.lang.String ELEMENT_IS_WRITABLE
public static final java.lang.String ELEMENT_IS_EXECUTABLE
public static final java.lang.String ATTRIBUTE_COMMAND
public static final java.lang.String ATTRIBUTE_VALUE
public static final java.lang.String ATTRIBUTE_CASE_SENSITIVE
public static final java.lang.String VALUE_TRUE
public static final java.lang.String VALUE_FALSE
| Constructor Detail |
|---|
public AssociationWriter(java.io.OutputStream stream)
throws java.io.IOException
stream - where to write the XML data.
java.io.IOException - if an I/O error occurs.| Method Detail |
|---|
public void startBuilding()
throws CommandException
startBuilding in interface AssociationBuilderCommandException - if an error occurs.
public void endBuilding()
throws CommandException
endBuilding in interface AssociationBuilderCommandException - if an error occurs.
public void startAssociation(java.lang.String command)
throws CommandException
AssociationBuilder
startAssociation in interface AssociationBuildercommand - command to call when the association is matched.
CommandException - if an error occurs.
public void endAssociation()
throws CommandException
AssociationBuilder
endAssociation in interface AssociationBuilderCommandException - if an error ocurs.
public void setMask(java.lang.String mask,
boolean isCaseSensitive)
throws CommandException
AssociationBuilder
setMask in interface AssociationBuildermask - regular expression that a file name must match in order to match the association.isCaseSensitive - whether the regular expression is case sensitive.
CommandException - if an error occurs.
public void setIsSymlink(boolean isSymlink)
throws CommandException
AssociationBuilder
setIsSymlink in interface AssociationBuilderisSymlink - whether symbolic links must be refused or accepted by the association.
CommandException - if an error occurs.
public void setIsHidden(boolean isHidden)
throws CommandException
AssociationBuilder
setIsHidden in interface AssociationBuilderisHidden - whether hidden files must be refused or accepted by the association.
CommandException - if an error occurs.
public void setIsReadable(boolean isReadable)
throws CommandException
AssociationBuilder
setIsReadable in interface AssociationBuilderisReadable - whether readable files must be refused or accepted by the association.
CommandException - if an error occurs.
public void setIsWritable(boolean isWritable)
throws CommandException
AssociationBuilder
setIsWritable in interface AssociationBuilderisWritable - whether writable files must be refused or accepted by the association.
CommandException - if an error occurs.
public void setIsExecutable(boolean isExecutable)
throws CommandException
AssociationBuilder
setIsExecutable in interface AssociationBuilderisExecutable - whether executable files must be refused or accepted by the association.
CommandException - if an error occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard