|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.edustructures.sifworks.Element
com.edustructures.sifworks.SIFElement
com.edustructures.sifworks.SIFKeyedElement
com.edustructures.sifworks.library.ItemInfo
public class ItemInfo
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
ItemInfo()
Constructor |
|
ItemInfo(ItemType type,
java.lang.String title)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
java.lang.String |
getAuthor()
Gets the value of the <Author> element. |
java.lang.String |
getCallNumber()
Gets the value of the <CallNumber> element. |
ElectronicId |
getElectronicId()
Gets the value of the <ElectronicId> element. |
java.lang.String |
getKey()
Gets the key of this object |
ElementDef[] |
getKeyFields()
Gets the metadata fields that make up the key of this object |
java.math.BigDecimal |
getPrice()
Gets the value of the <Price> element. |
java.lang.String |
getTitle()
Gets the value of the <Title> element. |
java.lang.String |
getType()
Gets the value of the Type attribute. |
void |
removeElectronicId()
Removes the ElectronicId child element previously created by calling setElectronicId |
void |
setAuthor(java.lang.String value)
Sets the value of the <Author> element. |
void |
setCallNumber(java.lang.String value)
Sets the value of the <CallNumber> element. |
void |
setElectronicId(ElectronicId value)
Sets the value of the <ElectronicId> element. |
void |
setElectronicId(ElectronicIdType type,
java.lang.String value)
Sets the value of the <ElectronicId> child element. |
void |
setPrice(java.math.BigDecimal value)
Sets the value of the <Price> element. |
void |
setTitle(java.lang.String value)
Sets the value of the <Title> element. |
void |
setType(ItemType value)
Sets the value of the Type attribute. |
void |
setType(java.lang.String value)
Sets the value of the Type attribute as a String. |
| Methods inherited from class com.edustructures.sifworks.SIFElement |
|---|
addChild, addChild, clone, compareGraphTo, create, effectiveSIFVersion, getChild, getChild, getChild, getChild, getChild, getChildCount, getChildList, getChildList, getChildList, getChildren, getChildren, getContent, getContent, getField, getField, getFieldCount, getFields, getFieldValue, getSIFValue, getSIFVersion, getTextValue, getXmlId, hasTextValue, removeChild, removeChild, removeChild, removeChild, restoreImplementationDef, setChanged, setChildren, setEmpty, setField, setField, setField, setField, setSIFValue, setSIFVersion, setTextValue, setXmlId, tag |
| Methods inherited from class com.edustructures.sifworks.Element |
|---|
compareTo, getElementDef, getParent, getRoot, isChanged, isDoNotEncode, isEmpty, setChanged, setDoNotEncode, setElementDef, setEmpty, setParent, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ItemInfo()
public ItemInfo(ItemType type,
java.lang.String title)
type - title - The title of the item being referenced by this Transaction.| Method Detail |
|---|
public java.lang.String getKey()
getKey in class SIFElementpublic ElementDef[] getKeyFields()
public java.lang.String getType()
Type attribute.
Type attribute of this object.public void setType(ItemType value)
Type attribute.
value - A constant defined by the ItemType classpublic void setType(java.lang.String value)
Type attribute as a String.
value - The value as a Stringpublic java.lang.String getTitle()
<Title> element.
The SIF specification defines the meaning of this element as: "The title of the item being referenced by this Transaction."
This element is known by more than one tag name depending on the version of SIF in use. The ADK will use the tag names shown below when parsing and rendering elements of this kind.
| Version | Tag |
| 1.1 | "ItemTitle" |
| SIF2.0 | "Title" |
Title element of this object.public void setTitle(java.lang.String value)
<Title> element.
The SIF specification defines the meaning of this element as: "The title of the item being referenced by this Transaction."
This element is known by more than one tag name depending on the version of SIF in use. The ADK will use the tag names shown below when parsing and rendering elements of this kind.
| Version | Tag |
| 1.1 | "ItemTitle" |
| SIF2.0 | "Title" |
value - A String objectpublic java.lang.String getAuthor()
<Author> element.
The SIF specification defines the meaning of this element as: "The author of the item being referenced by this Transaction."
Author element of this object.public void setAuthor(java.lang.String value)
<Author> element.
The SIF specification defines the meaning of this element as: "The author of the item being referenced by this Transaction."
value - A String objectpublic void setElectronicId(ElectronicId value)
<ElectronicId> element.
The SIF specification defines the meaning of this element as: "Electronic identifier associated with this Transaction."
This element is known by more than one tag name depending on the version of SIF in use. The ADK will use the tag names shown below when parsing and rendering elements of this kind.
| Version | Tag |
| 1.1 | "ItemElectronicId" |
| SIF2.0 | "ElectronicId" |
value - A ElectronicId object
public void setElectronicId(ElectronicIdType type,
java.lang.String value)
<ElectronicId> child element.
This form of setElectronicId is provided as a convenience method
that is functionally equivalent to the version of setElectronicId
that accepts a single ElectronicId object.
type - Electronic ID type.value - Gets or sets the content value of the <ElectronicId> elementpublic ElectronicId getElectronicId()
<ElectronicId> element.
The SIF specification defines the meaning of this element as: "Electronic identifier associated with this Transaction."
This element is known by more than one tag name depending on the version of SIF in use. The ADK will use the tag names shown below when parsing and rendering elements of this kind.
| Version | Tag |
| 1.1 | "ItemElectronicId" |
| SIF2.0 | "ElectronicId" |
ElectronicId objectpublic void removeElectronicId()
ElectronicId child element previously created by calling setElectronicId
public java.lang.String getCallNumber()
<CallNumber> element.
The SIF specification defines the meaning of this element as: "The library call number, if any, assigned to this item."
CallNumber element of this object.public void setCallNumber(java.lang.String value)
<CallNumber> element.
The SIF specification defines the meaning of this element as: "The library call number, if any, assigned to this item."
value - A String objectpublic java.math.BigDecimal getPrice()
<Price> element.
The SIF specification defines the meaning of this element as: "The cost of this item. "
This element is known by more than one tag name depending on the version of SIF in use. The ADK will use the tag names shown below when parsing and rendering elements of this kind.
| Version | Tag |
| 1.1 | "CopyPrice" |
| SIF2.0 | "Price" |
Price element of this object.public void setPrice(java.math.BigDecimal value)
<Price> element.
The SIF specification defines the meaning of this element as: "The cost of this item. "
This element is known by more than one tag name depending on the version of SIF in use. The ADK will use the tag names shown below when parsing and rendering elements of this kind.
| Version | Tag |
| 1.1 | "CopyPrice" |
| SIF2.0 | "Price" |
value - A BigDecimal object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||