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 classNS.OpTypes -
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<Norm>normsprotected java.lang.StringnplProgramprivate OSosprivate static longserialVersionUIDFields inherited from class moise.common.MoiseElement
debug -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaddNorm(java.util.Collection<Norm> ns)voidaddNorm(Norm n)org.w3c.dom.ElementgetAsDOM(org.w3c.dom.Document document)NormgetNorm(java.lang.String nId)java.util.Collection<Norm>getNorms()java.lang.StringgetNPLNorms()OSgetOS()static java.lang.StringgetXMLTag()booleanhasNorm(java.lang.String roleId, java.lang.String missionId, NS.OpTypes type)returns true whether there is a type norm from roleId to missionId.voidremoveNorms(Role r)remove the norms for the role rvoidsetFromDOM(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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
norms
-
os
-
nplProgram
protected java.lang.String nplProgram
-
-
Constructor Details
-
NS
Creates new NS
-
-
Method Details
-
getOS
-
addNorm
-
addNorm
-
getNorm
-
getNorms
-
getNPLNorms
public java.lang.String getNPLNorms() -
hasNorm
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
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
- Throws:
MoiseException
-