public class LazyExtensionContentType extends java.lang.Object implements ContentType
STRICT_INHERITANCE
COMPARATOR
Constructor and Description |
---|
LazyExtensionContentType(org.java.plugin.registry.Extension extension) |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(java.lang.Object obj)
Checks the given argument (typically a
Class instance)
for compatibility with this content-type. |
boolean |
equals(java.lang.Object obj) |
java.lang.Class<?> |
getContentClass()
Returns the root class or interface that objects associated
with this
ContentType must extend or implement. |
java.lang.String |
getContentClassName() |
java.lang.String |
getDescription() |
protected Filter |
getFilter() |
javax.swing.Icon |
getIcon() |
java.lang.String |
getId() |
protected Identity |
getIdentity() |
java.lang.String |
getName() |
java.lang.Object |
getOwner() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Returns a read-only collection of properties in the form of
a key-value mapping.
|
int |
hashCode() |
java.lang.String |
toString() |
public LazyExtensionContentType(org.java.plugin.registry.Extension extension)
protected Identity getIdentity()
public java.lang.String getId()
getId
in interface Identity
Identity.getId()
public java.lang.String getName()
getName
in interface Identity
Identity.getName()
public java.lang.String getDescription()
getDescription
in interface Identity
Identity.getDescription()
public javax.swing.Icon getIcon()
getIcon
in interface Identity
Identity.getIcon()
public java.lang.Object getOwner()
getOwner
in interface Identity
Identity.getOwner()
public java.lang.Class<?> getContentClass()
ContentType
ContentType
must extend or implement.
This method must not return null
but is technically
allowed to return the Object
class.getContentClass
in interface ContentType
ContentType.getContentClass()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
ContentType
ContentType
does not
declare any properties it may either return an empty map or
null
.getProperties
in interface ContentType
ContentType.getProperties()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
protected Filter getFilter()
public boolean accepts(java.lang.Object obj)
ContentType
Class
instance)
for compatibility with this content-type.
Note that although all members of the content type framework
will call this method with a valid Class
argument, it
not explicitly required to do so! Custom implementations that
are designed to be used outside the framework might want to handle
arbitrary argument objects.
accepts
in interface ContentType
accepts
in interface Filter
Filter.accepts(java.lang.Object)
public java.lang.String getContentClassName()
getContentClassName
in interface ContentType
ContentType.getContentClassName()