1 18 package org.enhydra.convert.xml; 19 20 import java.io.File ; 22 import java.io.IOException ; 23 import java.io.OutputStream ; 24 import java.io.Writer ; 25 26 import java.util.List ; 28 import java.io.Serializable ; 29 30 public interface SecurityConstraint extends Serializable { 31 32 public static final String ZEUS_XML_NAME = "security-constraint"; 33 public static final String [] ZEUS_ATTRIBUTES = {"id"}; 34 public static final String [] ZEUS_ELEMENTS = {"display-name", "web-resource-collection", "auth-constraint", "user-data-constraint"}; 35 36 public DisplayName getDisplayName(); 37 38 public void setDisplayName(DisplayName displayName); 39 40 public List getWebResourceCollectionList(); 41 42 public void setWebResourceCollectionList(List webResourceCollectionList); 43 44 public void addWebResourceCollection(WebResourceCollection webResourceCollection); 45 46 public void removeWebResourceCollection(WebResourceCollection webResourceCollection); 47 48 public AuthConstraint getAuthConstraint(); 49 50 public void setAuthConstraint(AuthConstraint authConstraint); 51 52 public UserDataConstraint getUserDataConstraint(); 53 54 public void setUserDataConstraint(UserDataConstraint userDataConstraint); 55 56 public String getId(); 57 58 public void setId(String id); 59 60 public void marshal(File file) throws IOException ; 61 62 public void marshal(OutputStream outputStream) throws IOException ; 63 64 public void marshal(Writer writer) throws IOException ; 65 66 public void setDocType(String name, String publicID, String systemID); 67 68 public void setOutputEncoding(String outputEncoding); 69 70 } 71 | Popular Tags |