|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NElement
NElement describes an element type. It simply comprises of its attributes or pointers. Valid parents and children are defined at the NLayer level.
Field Summary | |
---|---|
static int |
CODING
|
static int |
CORPUSRESOURCE
|
static int |
OBJECTSET
|
static int |
ONTOLOGY
|
Method Summary | |
---|---|
NAttribute |
getAttributeByName(java.lang.String attr)
find the NAttribute with the given name in this Element, or return null |
java.util.List |
getAttributes()
Find the attributes for this element - returns a List of NAttributes |
java.lang.Object |
getContainer()
returns the Object to which this element belongs. |
int |
getContainerType()
returns the type of the container of this element: if it's an element in an ontology, this returns ONTOLOGY etc. |
java.awt.Color |
getDisplayColor()
return the colour used to display this type of element on the OTAB. |
java.lang.String |
getExternalPointerRole()
return the role of any external pointer for this element: will only ever be non-null for elements in layers of type EXTERNAL_POINTER_LAYER. |
NLayer |
getLayer()
returns the NLayer to which this element belongs. |
java.lang.String |
getName()
returns the name of the element |
java.util.List |
getPointers()
find the valid pointers on this element - returns a List of NPointers |
boolean |
textContentPermitted()
returns true if text content is permitted in this element. |
Field Detail |
---|
static final int CODING
static final int ONTOLOGY
static final int OBJECTSET
static final int CORPUSRESOURCE
Method Detail |
---|
java.lang.String getName()
java.util.List getAttributes()
NAttribute getAttributeByName(java.lang.String attr)
java.util.List getPointers()
NLayer getLayer()
int getContainerType()
java.lang.Object getContainer()
boolean textContentPermitted()
java.awt.Color getDisplayColor()
java.lang.String getExternalPointerRole()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |