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 int
getId()
Gets the value of the id property.FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.String
getValue()
Gets the value of the value property.void
setId(int value)
Sets the value of the id property.void
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorvoid
setValue(String value)
Sets the value of the value property.Locator
sourceLocation()
String
toString()
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:
sourceLocation
in interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator
.- Specified by:
getSourceLocator
in interfaceFileSourceContext
- Returns:
- a
FileSourceLocator
object.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocator
in interfaceFileSourceContext
- Parameters:
sourceLocator
- : the file locator
-
toString
public String toString()
toString
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classObject
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-