Class AbstractMutableElement
java.lang.Object
ch.nolix.system.element.mutableelement.AbstractMutableElement
- All Implemented Interfaces:
Resettable, IElement, IMutableElement
- Direct Known Subclasses:
AbstractStylableElement, GridCell, ItemMenuItem, MutableImage
- Author:
- Silvan Wyss
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddOrChangeAttribute(INode<?> attribute) Adds or changes the given attribute to the currentIMutableElement.final voidaddOrChangeAttribute(String attribute) Adds or changes the given attribute to the currentIMutableElement.final booleanfinal IContainer<INode<?>> final INode<?> final inthashCode()final voidresetFromFileWithFilePath(String filePath) Resets the currentAbstractMutableElementfrom the file with the given filePath.final StringtoString()Methods inherited from interface IElement
toFormatedString, toXmlMethods inherited from interface IMutableElement
addOrChangeAttributes, addOrChangeAttributes, addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface Resettable
reset
-
Constructor Details
-
AbstractMutableElement
public AbstractMutableElement()
-
-
Method Details
-
addOrChangeAttribute
Adds or changes the given attribute to the currentIMutableElement.- Specified by:
addOrChangeAttributein interfaceIMutableElement- Parameters:
attribute-- Throws:
RuntimeException- if the given attribute is not valid.
-
addOrChangeAttribute
Adds or changes the given attribute to the currentIMutableElement.- Specified by:
addOrChangeAttributein interfaceIMutableElement- Parameters:
attribute-
-
equals
-
getAttributes
- Specified by:
getAttributesin interfaceIElement- Returns:
- the attributes of the current
IElement.
-
getSpecification
- Specified by:
getSpecificationin interfaceIElement- Returns:
- the specification of the current
IElement.
-
hashCode
-
resetFromFileWithFilePath
Resets the currentAbstractMutableElementfrom the file with the given filePath.- Parameters:
filePath-- Throws:
RuntimeException- if the given filePath is not valid.
-
toString
-