|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.gui.configurator.nodeeditor.ElementType
public class ElementType
Provides some static functions and fields to facilitate node
distinction and XML handling in NodeEditor respectively
EditFieldsPanel and its descendants.
In a first part the strings corresponding to the names of XML elements and attributes are defined as constants (final static). In a second part, there are functions to check whether a given element or string is of a certain kind.
The motivation to group this together in a separate class as constants is that if once in the future the name of an element or an attribute is changed (which actually shouldn't but nevertheless is perfectly possible) then the only place you have to modify the code is in this file. All other classes doing XML treatment rely on this class.
| Field Summary | |
|---|---|
static String |
AbortBusy
values of XML elements. defined according to node.xsd |
static String |
AbortNoDialtone
values of XML elements. defined according to node.xsd |
static String |
Address
values of XML elements. defined according to node.xsd |
static String |
AutoReconnect
values of XML elements. defined according to node.xsd |
static String |
Baud
values of XML elements. defined according to node.xsd |
static String |
CarrierCheck
values of XML elements. defined according to node.xsd |
static String |
DefaultReply
values of XML elements. defined according to node.xsd |
static String |
DeviceNr
values of XML elements. defined according to node.xsd |
static String |
DialAttempts
values of XML elements. defined according to node.xsd |
static String |
DialCommand
values of XML elements. defined according to node.xsd |
static String |
DialPrefix
values of XML elements. defined according to node.xsd |
static String |
Dyn
values of XML elements. defined according to node.xsd |
static String |
Ethernet
values of XML elements. defined according to node.xsd |
static String |
EthernetBinding
values of XML elements. defined according to node.xsd |
static String |
Gateway
values of XML elements. defined according to node.xsd |
static String |
Hardware
values of XML elements. defined according to node.xsd |
static String |
Hostname
values of XML elements. defined according to node.xsd |
static String |
HWAddress
values of XML elements. defined according to node.xsd |
static String |
ID
values of XML elements. defined according to node.xsd |
static String |
Identifier
values of XML elements. defined according to node.xsd |
static String |
IdleSeconds
values of XML elements. defined according to node.xsd |
static String |
Init1
values of XML elements. defined according to node.xsd |
static String |
Init2
values of XML elements. defined according to node.xsd |
static String |
Init3
values of XML elements. defined according to node.xsd |
static String |
Init4
values of XML elements. defined according to node.xsd |
static String |
Init5
values of XML elements. defined according to node.xsd |
static String |
Init6
values of XML elements. defined according to node.xsd |
static String |
Init7
values of XML elements. defined according to node.xsd |
static String |
Init8
values of XML elements. defined according to node.xsd |
static String |
Init9
values of XML elements. defined according to node.xsd |
static String |
IP
values of XML elements. defined according to node.xsd |
static String |
Login
values of XML elements. defined according to node.xsd |
static String |
LoginPrompt
values of XML elements. defined according to node.xsd |
static String |
Name
values of XML elements. defined according to node.xsd |
static String |
Node
values of XML elements. defined according to node.xsd |
static String |
NW
values of XML elements. defined according to node.xsd |
static String |
NwDNSServer
values of XML elements. defined according to node.xsd |
static String |
OnBoot
values of XML elements. defined according to node.xsd |
static String |
Password
values of XML elements. defined according to node.xsd |
static String |
PasswordAsk
values of XML elements. defined according to node.xsd |
static String |
PasswordPrompt
values of XML elements. defined according to node.xsd |
static String |
PeerDNS
values of XML elements. defined according to node.xsd |
static String |
Phone
values of XML elements. defined according to node.xsd |
static String |
PhysicalNetwork
values of XML elements. defined according to node.xsd |
static String |
Protocol
values of XML elements. defined according to node.xsd |
static String |
RemoteName
values of XML elements. defined according to node.xsd |
static String |
Retry
values of XML elements. defined according to node.xsd |
static String |
Serial
values of XML elements. defined according to node.xsd |
static String |
SerialBinding
values of XML elements. defined according to node.xsd |
static String |
Session
values of XML elements. defined according to node.xsd |
static String |
Subnet
values of XML elements. defined according to node.xsd |
static String |
TimeOut
values of XML elements. defined according to node.xsd |
static String |
Type
values of XML elements. defined according to node.xsd |
static String |
WEPKey
values of XML elements. defined according to node.xsd |
static String |
Wlan
values of XML elements. defined according to node.xsd |
static String |
WlanBinding
values of XML elements. defined according to node.xsd |
| Constructor Summary | |
|---|---|
ElementType()
|
|
| Method Summary | |
|---|---|
static String |
getElementName(Element element)
Function used by EditorPanel to find a nice Name for a given XML element
Takes the String from the Name of the element and calls the getElementName(String). |
static String |
getElementName(String elementName)
Get a nice description for the element named elementName. |
static boolean |
isEthernet(Element element)
Trivial method to check if element is ethernet element. |
static boolean |
isEthernet(String elementName)
Trivial method to check if string is XML tag name for ethernet. |
static boolean |
isEthernetBinding(Element element)
Trivial method to check if element is ethernet binding element. |
static boolean |
isEthernetBinding(String elementName)
Trivial method to check if string is XML tag name for ethernet binding. |
static boolean |
isNetwork(Element element)
Trivial method to check if element is network element. |
static boolean |
isNetwork(String elementName)
Trivial method to check if string is XML tag name for network. |
static boolean |
isNode(Element element)
Trivial method to check if element is node element. |
static boolean |
isNode(String elementName)
Trivial method to check if string is XML tag name for node. |
static boolean |
isSerial(Element element)
Trivial method to check if element is serial element. |
static boolean |
isSerial(String elementName)
Trivial method to check if string is XML tag name for serial. |
static boolean |
isSerialBinding(Element element)
Trivial method to check if element is serial binding element. |
static boolean |
isSerialBinding(String elementName)
Trivial method to check if string is XML tag name for serial binding. |
static boolean |
isWlan(Element element)
Trivial method to check if element is wlan element. |
static boolean |
isWlan(String elementName)
Trivial method to check if string is XML tag name for wlan. |
static boolean |
isWlanBinding(Element element)
Trivial method to check if element is wlan binding element. |
static boolean |
isWlanBinding(String elementName)
Trivial method to check if string is XML tag name for wlan binding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String Node
public static final String PhysicalNetwork
public static final String Ethernet
public static final String EthernetBinding
public static final String Wlan
public static final String WlanBinding
public static final String Serial
public static final String SerialBinding
public static final String Name
public static final String Hostname
public static final String Hardware
public static final String NW
public static final String Address
public static final String HWAddress
public static final String Subnet
public static final String Gateway
public static final String OnBoot
public static final String PeerDNS
public static final String Type
public static final String ID
public static final String IP
public static final String Dyn
public static final String Retry
public static final String TimeOut
public static final String NwDNSServer
public static final String DeviceNr
public static final String Identifier
public static final String Baud
public static final String WEPKey
public static final String Session
public static final String Init1
public static final String Init2
public static final String Init3
public static final String Init4
public static final String Init5
public static final String Init6
public static final String Init7
public static final String Init8
public static final String Init9
public static final String Phone
public static final String DialPrefix
public static final String DialCommand
public static final String Login
public static final String LoginPrompt
public static final String Password
public static final String PasswordAsk
public static final String PasswordPrompt
public static final String AbortBusy
public static final String AbortNoDialtone
public static final String AutoReconnect
public static final String CarrierCheck
public static final String DefaultReply
public static final String DialAttempts
public static final String IdleSeconds
public static final String Protocol
public static final String RemoteName
| Constructor Detail |
|---|
public ElementType()
| Method Detail |
|---|
public static String getElementName(Element element)
EditorPanel to find a nice Name for a given XML element
Takes the String from the Name of the element and calls the getElementName(String).
element - The element to look for its name.
public static String getElementName(String elementName)
elementName - The name to look for.
public static boolean isNode(String elementName)
elementName - The name to check.
public static boolean isNode(Element element)
element - The XML element to test.
public static boolean isNetwork(String elementName)
elementName - The name to check.
public static boolean isNetwork(Element element)
element - The XML element to test.
public static boolean isEthernet(String elementName)
elementName - The name to check.
public static boolean isEthernet(Element element)
element - The XML element to test.
public static boolean isEthernetBinding(String elementName)
elementName - The name to check.
public static boolean isEthernetBinding(Element element)
element - The XML element to test.
public static boolean isWlan(String elementName)
elementName - The name to check.
public static boolean isWlan(Element element)
element - The XML element to test.
public static boolean isWlanBinding(String elementName)
elementName - The name to check.
public static boolean isWlanBinding(Element element)
element - The XML element to test.
public static boolean isSerial(String elementName)
elementName - The name to check.
public static boolean isSerial(Element element)
element - The XML element to test.
public static boolean isSerialBinding(String elementName)
elementName - The name to check.
public static boolean isSerialBinding(Element element)
element - The XML element to test.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||