|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.uniba.euromath.editor.widgets.namelist.DisplayableNameList<R>
sk.uniba.euromath.editor.widgets.namelist.DisplayableNameListImpl<R>
R - the rule type. Can be instance of AttributeRule or
NewElementRule only.public final class DisplayableNameListImpl<R extends BaseRule>
Represents the NameList object as a set of strings.
| Field Summary |
|---|
| Fields inherited from class sk.uniba.euromath.editor.widgets.namelist.DisplayableNameList |
|---|
isElement, localNamespaceName, localNamespaceUri |
| Constructor Summary | |
|---|---|
DisplayableNameListImpl(INameList<R> nameList,
XMLAccess xmlAccess,
NamespaceManager nsManager,
boolean isElement)
Constructs an instance of the object. |
|
| Method Summary | |
|---|---|
QName |
getForeign(int i)
Returns the foreign name. |
String |
getLocal(int i)
Returns the local name. |
String |
getNamespace(int i)
Returns the namespace item. |
R |
getRule(int i)
Returns the rule for the name as returned by the NameList
class. |
String[] |
getStrings()
Returns array of a displayable representation of names. |
DisplayableNameItemTypeEnum |
getType(int i)
Determines the type of the item. |
void |
refresh()
Refreshes the namelist and the object itself. |
| Methods inherited from class sk.uniba.euromath.editor.widgets.namelist.DisplayableNameList |
|---|
getDomNamespaceUri, getDomQName, getLength, getNamespaceDescription, getRealNamespaceDescription, getRealNamespaceUri, hasRule, isEmpty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DisplayableNameListImpl(INameList<R> nameList,
XMLAccess xmlAccess,
NamespaceManager nsManager,
boolean isElement)
nameList - the NameList to represent.xmlAccess - the xml documentnsManager - current namespace manager, it may contain new defined
prefixes.isElement - true if this object will represent elements or
attributes. There is a difference: elements from non-null namespace will
have a prefix, attributes from non-null (local) namespace will have a
prefix only if this namespace is different than a namespace of the owner
element.| Method Detail |
|---|
public String[] getStrings()
DisplayableNameList
getStrings in class DisplayableNameList<R extends BaseRule>public String getLocal(int i)
DisplayableNameList
getLocal in class DisplayableNameList<R extends BaseRule>i - index of the name, as in getStrings() array.
public QName getForeign(int i)
DisplayableNameList
getForeign in class DisplayableNameList<R extends BaseRule>i - index of the name, as in getStrings() array.
public String getNamespace(int i)
DisplayableNameList
getNamespace in class DisplayableNameList<R extends BaseRule>i - index of the name, as in getStrings() array.
public DisplayableNameItemTypeEnum getType(int i)
DisplayableNameList
getType in class DisplayableNameList<R extends BaseRule>i - index of the name, as in getStrings() array.
public R getRule(int i)
DisplayableNameListNameList
class. Only local and foreign items can have a rule.
getRule in class DisplayableNameList<R extends BaseRule>i - index of the name, as in getStrings() array.
public void refresh()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||