/** * If the target is a synset, return it, otherwise it's a word * so return the word's parent synset. * * @return If the target is a synset, return it, otherwise it's a word so return the word's parent synset */ public Synset getSynset() { return target.getSynset(); }
/** * If the target is a synset, return it, otherwise it's a word * so return the word's parent synset. * * @return If the target is a synset, return it, otherwise it's a word so return the word's parent synset */ public Synset getSynset() { return target.getSynset(); }
/** * Returns the synset that is a) the target of this pointer, or b) the synset that contains the target of this pointer. * * @return the synset that is a) the target of this pointer, or b) the synset that contains the target of this pointer. * @throws JWNLException JWNLException */ public Synset getTargetSynset() throws JWNLException { if (null == getTarget()) { return null; } return getTarget().getSynset(); }
/** * Returns the synset that is a) the target of this pointer, or b) the synset that contains the target of this pointer. * * @return the synset that is a) the target of this pointer, or b) the synset that contains the target of this pointer. * @throws JWNLException JWNLException */ public Synset getTargetSynset() throws JWNLException { if (null == getTarget()) { return null; } return getTarget().getSynset(); }
/** * Returns the offset of the target synset. * * @return offset of the target synset * @throws JWNLException JWNLException */ public long getTargetOffset() throws JWNLException { if (null == target) { if (null != source.getDictionary() && source.getDictionary().isEditable()) { return getTarget().getSynset().getOffset(); } else { return targetIndex.offset; } } else { return target.getSynset().getOffset(); } }
/** * Returns the offset of the target synset. * * @return offset of the target synset * @throws JWNLException JWNLException */ public long getTargetOffset() throws JWNLException { if (null == target) { if (null != source.getDictionary() && source.getDictionary().isEditable()) { return getTarget().getSynset().getOffset(); } else { return targetIndex.offset; } } else { return target.getSynset().getOffset(); } }
if (!target.getPOS().equals(pointer.getTargetPOS()) || target.getIndex() != pointer.getTargetIndex() || target.getSynset().getOffset() != pointer.getTargetOffset()) { return false;
if (!target.getPOS().equals(pointer.getTargetPOS()) || target.getIndex() != pointer.getTargetIndex() || target.getSynset().getOffset() != pointer.getTargetOffset()) { return false;