/** * Returns the data for the position. * * @return data for the position */ public PositionData getPositionData() { return getExtension(PositionData.class); }
/** * Returns whether it has the data for the position. * * @return whether it has the data for the position */ public boolean hasPositionData() { return hasExtension(PositionData.class); }
/** * Sets the data for the position. * * @param positionData data for the position or <code>null</code> to reset */ public void setPositionData(PositionData positionData) { if (positionData == null) { removeExtension(PositionData.class); } else { setExtension(positionData); } }
/** * Default mutable constructor. */ public PositionEntry() { super(); getCategories().add(CATEGORY); }
/** * Default mutable constructor. */ public PositionEntry() { super(); getCategories().add(CATEGORY); }
/** * Sets the stock symbol for the position. * * @param symbol stock symbol for the position or <code>null</code> to reset */ public void setSymbol(Symbol symbol) { if (symbol == null) { removeExtension(Symbol.class); } else { setExtension(symbol); } }
/** * Returns whether it has the transaction feed for the position. * * @return whether it has the transaction feed for the position */ public boolean hasFeedLink() { return hasExtension(PositionFeedLink.class); }
/** * Returns the transaction feed for the position. * * @return transaction feed for the position */ public PositionFeedLink getFeedLink() { return getExtension(PositionFeedLink.class); }
/** * Sets the data for the position. * * @param positionData data for the position or <code>null</code> to reset */ public void setPositionData(PositionData positionData) { if (positionData == null) { removeExtension(PositionData.class); } else { setExtension(positionData); } }
/** * Returns whether it has the stock symbol for the position. * * @return whether it has the stock symbol for the position */ public boolean hasSymbol() { return hasExtension(Symbol.class); }
/** * Returns the data for the position. * * @return data for the position */ public PositionData getPositionData() { return getExtension(PositionData.class); }
/** * Sets the stock symbol for the position. * * @param symbol stock symbol for the position or <code>null</code> to reset */ public void setSymbol(Symbol symbol) { if (symbol == null) { removeExtension(Symbol.class); } else { setExtension(symbol); } }
/** * Returns whether it has the transaction feed for the position. * * @return whether it has the transaction feed for the position */ public boolean hasFeedLink() { return hasExtension(PositionFeedLink.class); }
/** * Returns the stock symbol for the position. * * @return stock symbol for the position */ public Symbol getSymbol() { return getExtension(Symbol.class); }
/** * Sets the transaction feed for the position. * * @param feedLink transaction feed for the position or <code>null</code> to * reset */ public void setFeedLink(PositionFeedLink feedLink) { if (feedLink == null) { removeExtension(PositionFeedLink.class); } else { setExtension(feedLink); } }
/** * Returns whether it has the data for the position. * * @return whether it has the data for the position */ public boolean hasPositionData() { return hasExtension(PositionData.class); }
/** * Returns the transaction feed for the position. * * @return transaction feed for the position */ public PositionFeedLink getFeedLink() { return getExtension(PositionFeedLink.class); }
/** * Sets the transaction feed for the position. * * @param feedLink transaction feed for the position or <code>null</code> to * reset */ public void setFeedLink(PositionFeedLink feedLink) { if (feedLink == null) { removeExtension(PositionFeedLink.class); } else { setExtension(feedLink); } }
/** * Returns whether it has the stock symbol for the position. * * @return whether it has the stock symbol for the position */ public boolean hasSymbol() { return hasExtension(Symbol.class); }
/** * Returns the stock symbol for the position. * * @return stock symbol for the position */ public Symbol getSymbol() { return getExtension(Symbol.class); }