View Javadoc
1 /* 2 * $Header: /cvsroot/ebxmlrr/jaxr/src/com/sun/xml/registry/ebxml/infomodel/RegistryEntryImpl.java,v 1.8 2002/11/03 19:31:25 farrukh_najmi Exp $ 3 * 4 * 5 */ 6 7 package com.sun.xml.registry.ebxml.infomodel; 8 9 import javax.xml.registry.*; 10 import javax.xml.registry.infomodel.*; 11 import java.util.Date; 12 13 import com.sun.xml.registry.ebxml.LifeCycleManagerImpl; 14 15 /*** 16 * Class Declaration for Class1 17 * @author <a href="mailto:Farrukh.Najmi@Sun.COM">Farrukh S. Najmi</a> 18 */ 19 public abstract class RegistryEntryImpl extends RegistryObjectImpl 20 implements RegistryEntry, Versionable 21 { 22 private int status = RegistryEntry.STATUS_SUBMITTED; 23 private int stability = RegistryEntry.STABILITY_DYNAMIC; 24 private Date expiration = null; 25 private String userVersion = null; 26 27 private int majorVersion = 1; 28 private int minorVersion = 0; 29 30 public RegistryEntryImpl(LifeCycleManagerImpl lcm) 31 throws JAXRException 32 { 33 super(lcm); 34 } 35 36 public RegistryEntryImpl(LifeCycleManagerImpl lcm, 37 org.oasis.ebxml.registry.bindings.rim.RegistryEntryType ebObject) 38 throws JAXRException 39 { 40 super(lcm, ebObject); 41 42 expiration = ebObject.getExpiration(); 43 userVersion = ebObject.getUserVersion(); 44 majorVersion = ebObject.getMajorVersion(); 45 minorVersion = ebObject.getMinorVersion(); 46 } 47 48 public int getStatus() throws JAXRException { 49 return status; 50 } 51 52 public int getStability() throws JAXRException { 53 return stability; 54 } 55 56 public void setStability(int stability) throws JAXRException { 57 this.stability = stability; 58 setModified(true); 59 } 60 61 public Date getExpiration() throws JAXRException { 62 return expiration; 63 } 64 65 public void setExpiration(Date par1) throws JAXRException { 66 expiration = par1; 67 setModified(true); 68 } 69 70 public int getMajorVersion() throws JAXRException { 71 return majorVersion; 72 } 73 74 public void setMajorVersion(int par1) throws JAXRException { 75 majorVersion = par1; 76 setModified(true); 77 } 78 79 public int getMinorVersion() throws JAXRException { 80 return minorVersion; 81 } 82 83 public void setMinorVersion(int par1) throws JAXRException { 84 minorVersion = par1; 85 setModified(true); 86 } 87 88 public String getUserVersion() throws JAXRException { 89 return userVersion; 90 } 91 92 public void setUserVersion(String par1) throws JAXRException { 93 userVersion = par1; 94 setModified(true); 95 } 96 97 protected void setBindingObject(org.oasis.ebxml.registry.bindings.rim.RegistryEntryType ebRegistryEntry) throws JAXRException { 98 super.setBindingObject(ebRegistryEntry); 99 100 //??ebRegistryEntryObj.setStatus(StatusType.valueOf()); 101 //??ebRegistryEntryObj.setStability(stability); 102 ebRegistryEntry.setExpiration(expiration); 103 ebRegistryEntry.setUserVersion(userVersion); 104 //ebRegistryEntry.setMajorVersion(majorVersion); 105 //ebRegistryEntry.setMinorVersion(minorVersion); 106 } 107 108 }

This page was automatically generated by Maven