Package com.mxgraph.io.graphml
Class mxGraphMlKey
java.lang.Object
com.mxgraph.io.graphml.mxGraphMlKey
Represents a Key element in the GML Structure.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossibles values for the keyFor Attributestatic enumPossibles values for the keyType Attribute. -
Constructor Summary
ConstructorsConstructorDescriptionmxGraphMlKey(String keyId, mxGraphMlKey.keyForValues keyFor, String keyName, mxGraphMlKey.keyTypeValues keyType) Construct a key with the given parameters.mxGraphMlKey(Element keyElement) Construct a key from a xml key element. -
Method Summary
Modifier and TypeMethodDescriptionenumForValue(String value) Converts a String value in its corresponding enum value for the keyFor attribute.enumTypeValue(String value) Converts a String value in its corresponding enum value for the keyType attribute.generateElement(Document document) Generates a Key Element from this class.getKeyId()voidsetKeyDefault(String keyDefault) voidsetKeyFor(mxGraphMlKey.keyForValues keyFor) voidvoidsetKeyName(String keyName) voidsetKeyType(mxGraphMlKey.keyTypeValues keyType) Converts a enum value in its corresponding String value for the keyFor attribute.Converts a enum value in its corresponding string value for the keyType attribute.
-
Constructor Details
-
mxGraphMlKey
public mxGraphMlKey(String keyId, mxGraphMlKey.keyForValues keyFor, 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
Construct a key from a xml key element.- Parameters:
keyElement- Xml key element.
-
-
Method Details
-
getKeyDefault
-
setKeyDefault
-
getKeyFor
-
setKeyFor
-
getKeyId
-
setKeyId
-
getKeyName
-
setKeyName
-
getKeyType
-
setKeyType
-
generateElement
Generates a Key Element from this class.- Parameters:
document- Document where the key Element will be inserted.- Returns:
- Returns the generated Elements.
-
enumForValue
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
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
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
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.
-