Package com.mxgraph.io.graphml
Class mxGraphMlKey
- java.lang.Object
-
- com.mxgraph.io.graphml.mxGraphMlKey
-
public class mxGraphMlKey extends java.lang.ObjectRepresents a Key element in the GML Structure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classmxGraphMlKey.keyForValuesPossibles values for the keyFor Attributestatic classmxGraphMlKey.keyTypeValuesPossibles 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.keyForValuesenumForValue(java.lang.String value)Converts a String value in its corresponding enum value for the keyFor attribute.mxGraphMlKey.keyTypeValuesenumTypeValue(java.lang.String value)Converts a String value in its corresponding enum value for the keyType attribute.org.w3c.dom.ElementgenerateElement(org.w3c.dom.Document document)Generates a Key Element from this class.java.lang.StringgetKeyDefault()mxGraphMlKey.keyForValuesgetKeyFor()java.lang.StringgetKeyId()java.lang.StringgetKeyName()mxGraphMlKey.keyTypeValuesgetKeyType()voidsetKeyDefault(java.lang.String keyDefault)voidsetKeyFor(mxGraphMlKey.keyForValues keyFor)voidsetKeyId(java.lang.String keyId)voidsetKeyName(java.lang.String keyName)voidsetKeyType(mxGraphMlKey.keyTypeValues keyType)java.lang.StringstringForValue(mxGraphMlKey.keyForValues value)Converts a enum value in its corresponding String value for the keyFor attribute.java.lang.StringstringTypeValue(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.
-
-