Class UDMFScanner.Element

java.lang.Object
net.mtrop.doom.map.udmf.UDMFScanner.Element
Enclosing class:
UDMFScanner

public static class UDMFScanner.Element extends Object
A single scanned element from the scanner.
Since:
2.4.0
  • Constructor Details

    • Element

      public Element()
  • Method Details

    • isType

      public boolean isType(UDMFScanner.ElementType type)
      Checks if this element is the provided UDMFScanner.ElementType.
      Parameters:
      type - the element type to test.
      Returns:
      true if matched, false if not.
    • getType

      public UDMFScanner.ElementType getType()
      Returns:
      the element type.
    • hasName

      public boolean hasName(String name)
      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

      public String getName()
      Returns this element's name / object type.
      Returns:
      the scanned element name.
    • getValue

      public Object getValue()
      Returns this element's attribute value / UDMFObject.
      Returns:
      the scanned element value.
    • getUDMFObject

      public UDMFObject getUDMFObject()
      Returns this element's UDMFObject.
      Returns:
      the object, or null if the element type is not UDMFScanner.ElementType.OBJECT.