Class UDMFScanner.Element
java.lang.Object
net.mtrop.doom.map.udmf.UDMFScanner.Element
- Enclosing class:
UDMFScanner
A single scanned element from the scanner.
- Since:
- 2.4.0
- Author:
- Matthew Tropiano
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns this element's name / object type.getType()Returns this element's UDMFObject.getValue()Returns this element's attribute value / UDMFObject.booleanChecks if this element's name / object type is the provided one.booleanChecks if this element is the providedUDMFScanner.ElementType.
-
Constructor Details
-
Element
public Element()
-
-
Method Details
-
isType
Checks if this element is the providedUDMFScanner.ElementType.- Parameters:
type- the element type to test.- Returns:
- true if matched, false if not.
-
getType
- Returns:
- the element type.
-
hasName
Checks if this element's name / object type is the provided one.- Parameters:
name- the name/type to check.- Returns:
- true if matched, false if not.
-
getName
Returns this element's name / object type.- Returns:
- the scanned element name.
-
getValue
Returns this element's attribute value / UDMFObject.- Returns:
- the scanned element value.
-
getUDMFObject
Returns this element's UDMFObject.- Returns:
- the object, or null if the element type is not
UDMFScanner.ElementType.OBJECT.
-