|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nite.meta.impl.NiteElement
public class NiteElement
A element as referred to in the metadata
Field Summary |
---|
Fields inherited from interface net.sourceforge.nite.meta.NElement |
---|
CODING, CORPUSRESOURCE, OBJECTSET, ONTOLOGY |
Constructor Summary | |
---|---|
NiteElement(java.lang.String name,
java.util.ArrayList attributes,
java.util.ArrayList pointers,
NiteLayer layer,
java.lang.String col,
java.lang.String textc)
|
|
NiteElement(java.lang.String name,
java.util.ArrayList attributes,
java.util.ArrayList pointers,
java.lang.Object object,
java.lang.String col,
java.lang.String textc)
|
Method Summary | |
---|---|
void |
addAttribute(NAttribute nat)
add an attribute declaration to the list for this element |
NAttribute |
getAttributeByName(java.lang.String attname)
find the NAttribute with the given name in this Element, or return null |
java.util.List |
getAttributes()
Find the attributes for this element - returns an ArrayList 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 an ArrayList of NPointers |
boolean |
textContentPermitted()
returns true if text content is permitted in this element. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NiteElement(java.lang.String name, java.util.ArrayList attributes, java.util.ArrayList pointers, NiteLayer layer, java.lang.String col, java.lang.String textc)
public NiteElement(java.lang.String name, java.util.ArrayList attributes, java.util.ArrayList pointers, java.lang.Object object, java.lang.String col, java.lang.String textc)
Method Detail |
---|
public java.lang.String getName()
getName
in interface NElement
public NLayer getLayer()
getLayer
in interface NElement
public java.util.List getAttributes()
getAttributes
in interface NElement
public NAttribute getAttributeByName(java.lang.String attname)
getAttributeByName
in interface NElement
public java.util.List getPointers()
getPointers
in interface NElement
public int getContainerType()
getContainerType
in interface NElement
public java.lang.Object getContainer()
getContainer
in interface NElement
public void addAttribute(NAttribute nat)
public java.lang.String getExternalPointerRole()
getExternalPointerRole
in interface NElement
public boolean textContentPermitted()
textContentPermitted
in interface NElement
public java.awt.Color getDisplayColor()
getDisplayColor
in interface NElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |