Package moise.os
Class OS
java.lang.Object
moise.common.MoiseElement
moise.os.OS
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable,Identifiable,ToXML
public class OS extends MoiseElement implements ToXML
Represents an Organization Specification (SS, FS, NS).
- Author:
- Jomi Fred Hubner
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected FSfsprotected NSnsprivate static longserialVersionUIDprotected SSssprotected java.lang.StringuriFields inherited from class moise.common.MoiseElement
debug -
Constructor Summary
Constructors Constructor Description OS() -
Method Summary
Modifier and Type Method Description voidaddFS(FS f)adds the scheme of another FS into this OSvoidaddNS(NS d)adds the norms of another NS into this OSvoidaddSS(SS s)adds the elements (roles definitions, link types, ...) of another SS into this OSorg.w3c.dom.ElementgetAsDOM(org.w3c.dom.Document document)java.lang.StringgetAsProlog()returns a string representing the goal in Prolog syntax, format: os(id, root group, [schemes], [norms])FSgetFS()NSgetNS()SSgetSS()java.lang.StringgetURI()static java.lang.StringgetXMLTag()static OSloadOSFromURI(java.lang.String uri)static voidmain(java.lang.String[] args)used to convert old format to the newvoidsetFromDOM(org.w3c.dom.Node node)the organisation-specification parent node is the parametervoidsetFS(FS f)voidsetNS(NS n)voidsetSS(SS s)voidsetURI(java.lang.String u)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
-
ss
-
fs
-
ns
-
uri
protected java.lang.String uri
-
-
Constructor Details
-
OS
public OS()
-
-
Method Details
-
setSS
-
setFS
-
setNS
-
setURI
public void setURI(java.lang.String u) -
getURI
public java.lang.String getURI() -
addSS
adds the elements (roles definitions, link types, ...) of another SS into this OS- Throws:
MoiseException
-
addFS
adds the scheme of another FS into this OS -
addNS
adds the norms of another NS into this OS -
getSS
-
getFS
-
getNS
-
getAsProlog
public java.lang.String getAsProlog()returns a string representing the goal in Prolog syntax, format: os(id, root group, [schemes], [norms]) -
getXMLTag
public static java.lang.String getXMLTag() -
getAsDOM
public org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document) -
loadOSFromURI
-
setFromDOM
the organisation-specification parent node is the parameter- Throws:
MoiseException
-
main
public static void main(java.lang.String[] args) throws javax.xml.transform.TransformerExceptionused to convert old format to the new- Throws:
javax.xml.transform.TransformerException
-