Class AbstractAvailability
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.AbstractAvailability
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext
- Direct Known Subclasses:
AbstractAvailabilityRef,AbstractAvailabilityRef,AbstractAvailabilityRef,Availability,Availability,Availability,DefaultAvailability,DefaultAvailability,DefaultAvailability
public abstract class AbstractAvailability extends Object implements FileSourceContext, com.sun.xml.bind.Locatable
A text describing the availability of data, e.g. a copyright statement.Java class for availability complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="availability"> <simpleContent> <extension base="<http://www.w3.org/2001/XMLSchema>string"> <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /> </extension> </simpleContent> </complexType>
-
-
Constructor Summary
Constructors Constructor Description AbstractAvailability()Constructor for AbstractAvailability.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()Gets the value of the id property.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.StringgetValue()Gets the value of the value property.voidsetId(int value)Sets the value of the id property.voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorvoidsetValue(String value)Sets the value of the value property.LocatorsourceLocation()StringtoString()toString
-
-
-
Field Detail
-
locator
protected Locator locator
-
-
Method Detail
-
setValue
public void setValue(String value)
Sets the value of the value property.- Parameters:
value- allowed object isString
-
getId
public int getId()
Gets the value of the id property.- Returns:
- a int.
-
setId
public void setId(int value)
Sets the value of the id property.- Parameters:
value- a int.
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocationin interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator.- Specified by:
getSourceLocatorin interfaceFileSourceContext- Returns:
- a
FileSourceLocatorobject.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocatorin interfaceFileSourceContext- Parameters:
sourceLocator- : the file locator
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin classObject- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-