public class CASAFileLACKnownUsersMap extends UserMapXML
Copyright: Copyright 2003-2014, Knowledge Science Group, University of Calgary. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The Knowledge Science Group makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Modifier and Type | Field and Description |
---|---|
private CASAFile |
file
The CASAFile that we are writing these properties to.
|
private boolean |
initializing
Determines whther the file has been initialized to what we beleive to be a
correct value.
|
private boolean |
keepFileUpdated
Determines whether the properties are automatically written when they
are changed.
|
static String |
PROPERTIES_SECURITY_ENTRY |
modified, PROPERTY_TYPE, STRING_TYPE
Constructor and Description |
---|
CASAFileLACKnownUsersMap(CASAFile file) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Compares the specified
Object with this
CASAFilePropertiesMap for equality. |
boolean |
getKeepFileUpdated()
Returns whether this object is set to keep the file updated with every property change.
|
void |
setKeepFileUpdated(boolean keepUpdated)
Sets whether this object is to keep the file updated with every property change.
|
protected void |
setModified()
Called when the XML is modified for any reason.
|
void |
writeSecurityProperties()
Writes the propreties to the CASAFile.
|
clone, isModified, read, read, read, removeProperty, resetModified, setAllProperties, setProperty, setString, toString, write, write
clearProperties, getProperties, getProperty, getString, getType, hasProperty
public static String PROPERTIES_SECURITY_ENTRY
private CASAFile file
private boolean initializing
true
if the file has not been set yet;
false
otherwise.private boolean keepFileUpdated
public CASAFileLACKnownUsersMap(CASAFile file)
public void writeSecurityProperties()
public void setKeepFileUpdated(boolean keepUpdated)
keepUpdated
- true
if the object is set to keep the file updated with every property change; false
otherwise.public boolean getKeepFileUpdated()
true
if the object is set to keep the file updated with every property change; false
otherwise.protected void setModified()
keepFileUpdated
is set.setModified
in class UserMapXML
public boolean equals(Object object)
Object
with this
CASAFilePropertiesMap
for equality. The two are equal if the
Object
is an instance of PropertiesMap
and
all of their properties are equal, and furthermore, if the
Object
is an instance of CASAFilePropertiesMap
,
they must both use the same CASAFile
.