public class InstanceFilter extends java.lang.Object implements JDOMExternalizable
Modifier and Type | Field and Description |
---|---|
static InstanceFilter[] |
EMPTY_ARRAY |
boolean |
ENABLED |
long |
ID |
Modifier | Constructor and Description |
---|---|
|
InstanceFilter() |
protected |
InstanceFilter(long ID,
boolean ENABLED) |
Modifier and Type | Method and Description |
---|---|
static InstanceFilter |
create(ClassFilter filter) |
static InstanceFilter |
create(long id) |
static InstanceFilter |
create(java.lang.String pattern) |
static ClassFilter[] |
createClassFilters(InstanceFilter[] filters) |
boolean |
equals(java.lang.Object o) |
long |
getId() |
int |
hashCode() |
boolean |
isEnabled() |
void |
readExternal(Element element) |
void |
setEnabled(boolean enabled) |
void |
setId(long id) |
void |
writeExternal(Element element) |
public static final InstanceFilter[] EMPTY_ARRAY
public long ID
public boolean ENABLED
public InstanceFilter()
protected InstanceFilter(long ID, boolean ENABLED)
public long getId()
public boolean isEnabled()
public void setId(long id)
public void setEnabled(boolean enabled)
public static InstanceFilter create(long id)
public static InstanceFilter create(java.lang.String pattern)
public static InstanceFilter create(ClassFilter filter)
public void readExternal(Element element) throws InvalidDataException
readExternal
in interface JDOMExternalizable
InvalidDataException
public void writeExternal(Element element) throws WriteExternalException
writeExternal
in interface JDOMExternalizable
WriteExternalException
public static ClassFilter[] createClassFilters(InstanceFilter[] filters)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object