Class Entity


  • public class Entity
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      Entity​(java.lang.String name)
      Creates entity reference.
      Entity​(java.lang.String name, java.lang.String value)
      Creates internal entity.
      Entity​(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
      Creates external entity.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns entity's name.
      java.lang.String getOriginalName()
      Returns entity's original name, with '%' for parameter entities.
      java.lang.String getPublicId()
      Returns entity's publicId.
      java.lang.String getSystemId()
      Returns entity's systemId.
      org.omegat.filters3.xml.Entity.Type getType()
      Whether entity is internal.
      java.lang.String getValue()
      Returns entity's value.
      boolean isParameter()
      Whether entity is a parameter entity.
      java.lang.String toString()
      Returns the entity as string.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Entity

        public Entity​(java.lang.String name,
                      java.lang.String value)
        Creates internal entity.
      • Entity

        public Entity​(java.lang.String name,
                      java.lang.String publicId,
                      java.lang.String systemId)
        Creates external entity.
      • Entity

        public Entity​(java.lang.String name)
        Creates entity reference.
    • Method Detail

      • getType

        public org.omegat.filters3.xml.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 java.lang.String getName()
        Returns entity's name.
      • getOriginalName

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

        public java.lang.String getValue()
        Returns entity's value.
      • getPublicId

        public java.lang.String getPublicId()
        Returns entity's publicId.
      • getSystemId

        public java.lang.String getSystemId()
        Returns entity's systemId.
      • toString

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