Package moise.os.ns
Class NS
- java.lang.Object
-
- moise.common.MoiseElement
-
- moise.os.ns.NS
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
,Identifiable
,ToXML
public class NS extends MoiseElement implements ToXML
Represents a Normative Specification.- Author:
- Jomi Fred Hubner
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NS.OpTypes
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<Norm>
norms
protected java.lang.String
nplProgram
private OS
os
private static long
serialVersionUID
-
Fields inherited from class moise.common.MoiseElement
debug
-
-
Method Summary
Modifier and Type Method Description void
addNorm(java.util.Collection<Norm> ns)
void
addNorm(Norm n)
org.w3c.dom.Element
getAsDOM(org.w3c.dom.Document document)
Norm
getNorm(java.lang.String nId)
java.util.Collection<Norm>
getNorms()
java.lang.String
getNPLNorms()
OS
getOS()
static java.lang.String
getXMLTag()
boolean
hasNorm(java.lang.String roleId, java.lang.String missionId, NS.OpTypes type)
returns true whether there is a type norm from roleId to missionId.void
removeNorms(Role r)
remove the norms for the role rvoid
setFromDOM(org.w3c.dom.Element ele)
-
Methods inherited from class moise.common.MoiseElement
compareTo, equals, getBoolProperty, getBoolProperty, getCreationDate, getFullId, getId, getId, getOwner, getPrefix, getPrefix, getProperties, getPropertiesAsDOM, getPropertiesAsProlog, getProperty, getStrProperty, hashCode, setId, setOwner, setPrefix, setPropertiesFromDOM, setProperty, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
norms
protected java.util.Set<Norm> norms
-
os
private OS os
-
nplProgram
protected java.lang.String nplProgram
-
-
Constructor Detail
-
NS
public NS(OS os)
Creates new NS
-
-
Method Detail
-
getOS
public OS getOS()
-
addNorm
public void addNorm(Norm n)
-
addNorm
public void addNorm(java.util.Collection<Norm> ns)
-
getNorm
public Norm getNorm(java.lang.String nId)
-
getNorms
public java.util.Collection<Norm> getNorms()
-
getNPLNorms
public java.lang.String getNPLNorms()
-
hasNorm
public boolean hasNorm(java.lang.String roleId, java.lang.String missionId, NS.OpTypes type)
returns true whether there is a type norm from roleId to missionId. if some of the parameters is null, it will not considered in the comparison
-
removeNorms
public void removeNorms(Role r)
remove the norms for the role r
-
getXMLTag
public static java.lang.String getXMLTag()
-
getAsDOM
public org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document)
-
setFromDOM
public void setFromDOM(org.w3c.dom.Element ele) throws MoiseException
- Throws:
MoiseException
-
-