Package com.mxgraph.io.graphml
Class mxGraphMlKey
- java.lang.Object
-
- com.mxgraph.io.graphml.mxGraphMlKey
-
public class mxGraphMlKey extends java.lang.Object
Represents a Key element in the GML Structure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
mxGraphMlKey.keyForValues
Possibles values for the keyFor Attributestatic class
mxGraphMlKey.keyTypeValues
Possibles values for the keyType Attribute.
-
Constructor Summary
Constructors Constructor Description mxGraphMlKey(java.lang.String keyId, mxGraphMlKey.keyForValues keyFor, java.lang.String keyName, mxGraphMlKey.keyTypeValues keyType)
Construct a key with the given parameters.mxGraphMlKey(org.w3c.dom.Element keyElement)
Construct a key from a xml key element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description mxGraphMlKey.keyForValues
enumForValue(java.lang.String value)
Converts a String value in its corresponding enum value for the keyFor attribute.mxGraphMlKey.keyTypeValues
enumTypeValue(java.lang.String value)
Converts a String value in its corresponding enum value for the keyType attribute.org.w3c.dom.Element
generateElement(org.w3c.dom.Document document)
Generates a Key Element from this class.java.lang.String
getKeyDefault()
mxGraphMlKey.keyForValues
getKeyFor()
java.lang.String
getKeyId()
java.lang.String
getKeyName()
mxGraphMlKey.keyTypeValues
getKeyType()
void
setKeyDefault(java.lang.String keyDefault)
void
setKeyFor(mxGraphMlKey.keyForValues keyFor)
void
setKeyId(java.lang.String keyId)
void
setKeyName(java.lang.String keyName)
void
setKeyType(mxGraphMlKey.keyTypeValues keyType)
java.lang.String
stringForValue(mxGraphMlKey.keyForValues value)
Converts a enum value in its corresponding String value for the keyFor attribute.java.lang.String
stringTypeValue(mxGraphMlKey.keyTypeValues value)
Converts a enum value in its corresponding string value for the keyType attribute.
-
-
-
Constructor Detail
-
mxGraphMlKey
public mxGraphMlKey(java.lang.String keyId, mxGraphMlKey.keyForValues keyFor, java.lang.String keyName, mxGraphMlKey.keyTypeValues keyType)
Construct a key with the given parameters.- Parameters:
keyId
- Key's IDkeyFor
- Scope of the key.keyName
- Key NamekeyType
- Type of the values represented for this key.
-
mxGraphMlKey
public mxGraphMlKey(org.w3c.dom.Element keyElement)
Construct a key from a xml key element.- Parameters:
keyElement
- Xml key element.
-
-
Method Detail
-
getKeyDefault
public java.lang.String getKeyDefault()
-
setKeyDefault
public void setKeyDefault(java.lang.String keyDefault)
-
getKeyFor
public mxGraphMlKey.keyForValues getKeyFor()
-
setKeyFor
public void setKeyFor(mxGraphMlKey.keyForValues keyFor)
-
getKeyId
public java.lang.String getKeyId()
-
setKeyId
public void setKeyId(java.lang.String keyId)
-
getKeyName
public java.lang.String getKeyName()
-
setKeyName
public void setKeyName(java.lang.String keyName)
-
getKeyType
public mxGraphMlKey.keyTypeValues getKeyType()
-
setKeyType
public void setKeyType(mxGraphMlKey.keyTypeValues keyType)
-
generateElement
public org.w3c.dom.Element generateElement(org.w3c.dom.Document document)
Generates a Key Element from this class.- Parameters:
document
- Document where the key Element will be inserted.- Returns:
- Returns the generated Elements.
-
enumForValue
public mxGraphMlKey.keyForValues enumForValue(java.lang.String value)
Converts a String value in its corresponding enum value for the keyFor attribute.- Parameters:
value
- Value in String representation.- Returns:
- Returns the value in its enum representation.
-
stringForValue
public java.lang.String stringForValue(mxGraphMlKey.keyForValues value)
Converts a enum value in its corresponding String value for the keyFor attribute.- Parameters:
value
- Value in enum representation.- Returns:
- Returns the value in its String representation.
-
enumTypeValue
public mxGraphMlKey.keyTypeValues enumTypeValue(java.lang.String value)
Converts a String value in its corresponding enum value for the keyType attribute.- Parameters:
value
- Value in String representation.- Returns:
- Returns the value in its enum representation.
-
stringTypeValue
public java.lang.String stringTypeValue(mxGraphMlKey.keyTypeValues value)
Converts a enum value in its corresponding string value for the keyType attribute.- Parameters:
value
- Value in enum representation.- Returns:
- Returns the value in its String representation.
-
-