|
||||||||||
| 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<AttributeRule>
sk.uniba.euromath.editor.widgets.namelist.SingleAttributeDNL
public final class SingleAttributeDNL
Contains only one attribute rule. Works only with existing attributes; existing attribute must have been created by some known schema hence it shall never contain the namespace item type.
| Field Summary | |
|---|---|
protected QName |
attrName
The attribute qname. |
protected AttributeRule |
rule
Represents this single rule. |
protected String[] |
strings
Displayable strings. |
protected DisplayableNameItemTypeEnum |
type
The rule type. |
| Fields inherited from class sk.uniba.euromath.editor.widgets.namelist.DisplayableNameList |
|---|
isElement, localNamespaceName, localNamespaceUri |
| Constructor Summary | |
|---|---|
SingleAttributeDNL(Attr attr,
AttributeRule rule)
Constructs object representing given attribute and its rule only. |
|
SingleAttributeDNL(QName attrName,
AttributeRule rule,
String localNamespaceUri)
Constructs object representing given attribute and its rule only. |
|
| 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. |
AttributeRule |
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. |
| 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 |
| Field Detail |
|---|
protected final AttributeRule rule
protected final DisplayableNameItemTypeEnum type
protected final QName attrName
protected final String[] strings
| Constructor Detail |
|---|
public SingleAttributeDNL(Attr attr,
AttributeRule rule)
attr - the attribute to represent. It must have its owner element.rule - rule for given attribute.
public SingleAttributeDNL(QName attrName,
AttributeRule rule,
String localNamespaceUri)
attrName - the attribute to representrule - rule for given attribute.localNamespaceUri - the namespace of the local elements/attributes.| Method Detail |
|---|
public QName getForeign(int i)
DisplayableNameList
getForeign in class DisplayableNameList<AttributeRule>i - index of the name, as in getStrings() array.
public String getLocal(int i)
DisplayableNameList
getLocal in class DisplayableNameList<AttributeRule>i - index of the name, as in getStrings() array.
public AttributeRule getRule(int i)
DisplayableNameListNameList
class. Only local and foreign items can have a rule.
getRule in class DisplayableNameList<AttributeRule>i - index of the name, as in getStrings() array.
public String[] getStrings()
DisplayableNameList
getStrings in class DisplayableNameList<AttributeRule>public String getNamespace(int i)
DisplayableNameList
getNamespace in class DisplayableNameList<AttributeRule>i - index of the name, as in getStrings() array.
public DisplayableNameItemTypeEnum getType(int i)
DisplayableNameList
getType in class DisplayableNameList<AttributeRule>i - index of the name, as in getStrings() array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||