/** * Checks whether the declaration of an entity given by name is // in the external subset. * * @param entityName The name of the entity to check. * @return True if the entity was declared in the external subset, false otherwise * (including when the entity is not declared). */ public boolean isEntityDeclInExternalSubset(String entityName) { Entity entity = (Entity)fEntities.get(entityName); if (entity == null) { return false; } return entity.isEntityDeclInExternalSubset(); }
/** * Returns the number of direct and indirect references to parameter * entities in the value of the entity. This value will only be * non-zero for an internal parameter entity. * * @param entityName The name of the entity to check. * @return Count of direct and indirect references to parameter entities in the value of the entity */ public int getParamEntityRefCount(String entityName) { if (entityName != null && entityName.length() > 0 && entityName.charAt(0) == '%') { final Entity entity = (Entity) fEntities.get(entityName); if (entity != null && !entity.isExternal()) { return ((InternalEntity) entity).paramEntityRefs; } } return 0; } // getParamEntityRefCount(String)
/** * Checks whether an entity given by name is unparsed. * * @param entityName The name of the entity to check. * @return True if the entity is unparsed, false otherwise * (including when the entity is not declared). */ public boolean isUnparsedEntity(String entityName) { Entity entity = (Entity)fEntities.get(entityName); if (entity == null) { return false; } return entity.isUnparsed(); }
boolean external = entity.isExternal(); if (external && (fValidationManager == null || !fValidationManager.isCachedDTD())) { boolean unparsed = entity.isUnparsed(); boolean parameter = entityName.startsWith("%"); boolean general = !parameter;
/** * Checks whether an entity given by name is external. * * @param entityName The name of the entity to check. * @return True if the entity is external, false otherwise * (including when the entity is not declared). */ public boolean isExternalEntity(String entityName) { Entity entity = (Entity)fEntities.get(entityName); if (entity == null) { return false; } return entity.isExternal(); }
/** Sets the values of the entity. */ public void setValues(Entity entity) { super.setValues(entity); entityLocation = null; notation = null; } // setValues(Entity)
/** Clears the entity. */ public void clear() { super.clear(); text = null; } // clear()
/** Sets the values of the entity. */ public void setValues(InternalEntity entity) { super.setValues(entity); text = entity.text; } // setValues(InternalEntity)
/** Sets the values of the entity. */ public void setValues(Entity entity) { super.setValues(entity); text = null; } // setValues(Entity)
/** Clears the entity. */ public void clear() { super.clear(); entityLocation = null; notation = null; } // clear()
/** Default constructor. */ public Entity() { clear(); } // <init>()
/** Sets the values of the entity. */ public void setValues(ExternalEntity entity) { super.setValues(entity); entityLocation = entity.entityLocation; notation = entity.notation; } // setValues(ExternalEntity)