public class PropertyHandler extends Object implements RevisionHandler
| Constructor and Description |
|---|
PropertyHandler()
initializes the handling
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllowed(Class c,
String displayName)
adds the given property (display name) to the list of allowed properties
for the specified class.
|
void |
addIgnored(Class c,
String displayName)
adds the given class with the display name of a property to the ignore list.
|
void |
addIgnored(String displayName)
adds the given display name of a property to the ignore list.
|
Enumeration |
allowed()
returns an enumeration of the classnames for which only certain properties
(display names) are allowed
|
String |
getRevision()
Returns the revision string.
|
Enumeration |
ignored()
returns an enumeration of the stored display names and classes of
properties to ignore.
NOTE: String and Class Objects are mixed in this enumeration, depending whether it is a global property to ignore or just one for a certain class! |
boolean |
isAllowed(Class c,
String displayName)
returns whether the given property (display name) is allowed for the
given class.
|
boolean |
isAllowed(Object o,
String displayName)
returns whether the given property (display name) is allowed for the given
object .
|
boolean |
isIgnored(Class c,
String displayName)
checks whether the given display name of a certain class is an ignored
property.
|
boolean |
isIgnored(Object o,
String displayName)
checks whether the given display name of a given object is an ignored
property.
|
boolean |
isIgnored(String displayName)
checks whether the given display name is an ignored property
|
boolean |
removeAllowed(Class c,
String displayName)
removes the given property (display name) for the specified class from
the list of allowed properties.
|
boolean |
removeIgnored(Class c,
String displayName)
removes the given display name from the ignore list of the class.
|
boolean |
removeIgnored(String displayName)
removes the given display name from the ignore list.
|
public Enumeration ignored()
m_Ignoredpublic void addIgnored(String displayName)
__root__.options) or only a
property name (e.g. options). In the latter case it matches
all occurences of this display name.displayName - the property to ignorem_Ignoredpublic void addIgnored(Class c, String displayName)
c - the class for which a property is to be ignoreddisplayName - the property to ignorem_Ignoredpublic boolean removeIgnored(String displayName)
displayName - the property to remove from the ignore listm_Ignoredpublic boolean removeIgnored(Class c, String displayName)
c - the class to remove the property fromdisplayName - the property to remove from the ignore listm_Ignoredpublic boolean isIgnored(String displayName)
displayName - the property to check whether it is on the ignore listm_Ignoredpublic boolean isIgnored(Class c, String displayName)
isIgnored(Object,String).c - the class to check the property fordisplayName - the property to check whether it is on the ignore listm_Ignored,
isIgnored(Object, String)public boolean isIgnored(Object o, String displayName)
instanceof. If the class is not stored then it will default
to false, since there are no restrictions for this class.o - the object to check the property fordisplayName - the property to check whether it is on the ignore listm_Ignoredpublic Enumeration allowed()
public void addAllowed(Class c, String displayName)
c - the class to add a property fordisplayName - the property to allow for the classm_Allowedpublic boolean removeAllowed(Class c, String displayName)
c - the class to remove the property fordisplayName - the property to removem_Allowedpublic boolean isAllowed(Class c, String displayName)
isAllowed(Object,String).c - the class to check the property fordisplayName - the property (display name) to checkm_Allowed,
isAllowed(Object, String)public boolean isAllowed(Object o, String displayName)
instanceof. If the class is not stored then it will default
to true, since there are no restrictions for this class.o - the object to check the property fordisplayName - the property (display name) to checkpublic String getRevision()
getRevision in interface RevisionHandlerCopyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.