com.android.repository.impl.meta
Class RevisionType

java.lang.Object
  extended by com.android.repository.impl.meta.RevisionType
Direct Known Subclasses:
RevisionType

public abstract class RevisionType
extends java.lang.Object

Superclass for xjc-generated revision class. Probably shouldn't be needed outside the repository framework: normally Revision should be used.


Constructor Summary
RevisionType()
           
 
Method Summary
 int getMajor()
          The major component of the revision.
 java.lang.Integer getMicro()
          The micro component of the revision, or null if unspecified.
 java.lang.Integer getMinor()
          The minor component of the revision, or null if unspecified.
 java.lang.Integer getPreview()
          The preview component of the revision, or null if unspecified.
 void setMajor(int major)
           
 void setMicro(java.lang.Integer micro)
           
 void setMinor(java.lang.Integer minor)
           
 void setPreview(java.lang.Integer preview)
           
 Revision toRevision()
          Convenience method to convert this into a Revision.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevisionType

public RevisionType()
Method Detail

getMajor

public int getMajor()
The major component of the revision.


getMinor

@Nullable
public java.lang.Integer getMinor()
The minor component of the revision, or null if unspecified.


getMicro

@Nullable
public java.lang.Integer getMicro()
The micro component of the revision, or null if unspecified.


getPreview

@Nullable
public java.lang.Integer getPreview()
The preview component of the revision, or null if unspecified. TODO: This segment might need to be more flexible.


setMajor

public void setMajor(int major)

setMinor

public void setMinor(@Nullable
                     java.lang.Integer minor)

setMicro

public void setMicro(@Nullable
                     java.lang.Integer micro)

setPreview

public void setPreview(@Nullable
                       java.lang.Integer preview)

toRevision

@NonNull
public Revision toRevision()
Convenience method to convert this into a Revision.