Class Entity

java.lang.Object
org.omegat.filters3.xml.Entity

public class Entity extends Object
Entity declaration in XML file's Document type declaration. For example, <!ENTITY gloss SYSTEM "gloss.xml"> is external entity and <!ENTITY % dbnotn.module "INCLUDE"> is internal one.
  • Constructor Details

    • Entity

      public Entity(String name, @Nullable @Nullable String value)
      Creates internal entity.
    • Entity

      public Entity(String name, @Nullable @Nullable String publicId, @Nullable @Nullable String systemId)
      Creates external entity.
    • Entity

      public Entity(String name)
      Creates entity reference.
  • Method Details

    • getType

      public Entity.Type getType()
      Whether entity is internal. If false, it's an external entity.
    • isParameter

      public boolean isParameter()
      Whether entity is a parameter entity.
    • getName

      public String getName()
      Returns entity's name.
    • getOriginalName

      public String getOriginalName()
      Returns entity's original name, with '%' for parameter entities.
    • getValue

      @Nullable public @Nullable String getValue()
      Returns entity's value.
    • getPublicId

      @Nullable public @Nullable String getPublicId()
      Returns entity's publicId.
    • getSystemId

      @Nullable public @Nullable String getSystemId()
      Returns entity's systemId.
    • toString

      public String toString()
      Returns the entity as string.
      Overrides:
      toString in class Object