001: /*
002: * JFolder, Copyright 2001-2006 Gary Steinmetz
003: *
004: * Distributable under LGPL license.
005: * See terms of license at gnu.org.
006: */
007:
008: package org.jfolder.common.entity.properties;
009:
010: //base classes
011: import java.io.IOException;
012: import java.util.ArrayList;
013: import java.util.HashMap;
014: import java.util.HashSet;
015: import java.util.Iterator;
016: import javax.xml.parsers.ParserConfigurationException;
017: import org.xml.sax.SAXException;
018:
019: //project specific classes
020: import org.jfolder.common.UnexpectedSystemException;
021: import org.jfolder.common.entity.InitializeSystemEntityTagContext;
022: import org.jfolder.common.entity.SystemEntity;
023: import org.jfolder.common.entity.SystemEntityUpdates;
024: import org.jfolder.common.entity.SystemEntityUpdatesContext;
025: import org.jfolder.common.entity.properties.SystemEntityProperties;
026: import org.jfolder.common.files.BaseVirtualFileSystemProperties;
027: import org.jfolder.common.tagging.AppraiseConceptTagContext;
028: import org.jfolder.common.tagging.CompoundConceptTagConstraintContext;
029: import org.jfolder.common.tagging.ConceptTag;
030: import org.jfolder.common.tagging.ConceptTagCharacteristic;
031: import org.jfolder.common.tagging.ConceptTagCharacteristicHolder;
032: import org.jfolder.common.tagging.ConceptTagConstraint;
033: import org.jfolder.common.tagging.ConceptTagConstraintHolder;
034: import org.jfolder.common.tagging.ConceptTagConstraintTemplate;
035: import org.jfolder.common.tagging.DynamicConceptTagConstraintContext;
036: import org.jfolder.common.tagging.InitializeConceptTagContext;
037: import org.jfolder.common.tagging.StaticConceptTagConstraintContext;
038: import org.jfolder.common.tagging.StudioConceptTagInstanceInfoContext;
039: import org.jfolder.common.tagging.StudioConceptTagTypeInfoContext;
040: import org.jfolder.common.utils.misc.MiscHelper;
041: import org.jfolder.common.utils.xml.XMLHelper;
042:
043: //other classes
044:
045: public class SimpleSystemEntityProperties extends
046: BaseVirtualFileSystemProperties implements
047: SystemEntityProperties {
048:
049: private String document = null;
050:
051: public final static SimpleSystemEntityProperties newInstance() {
052:
053: SimpleSystemEntityProperties outValue = null;
054:
055: outValue = new SimpleSystemEntityProperties();
056:
057: return outValue;
058: }
059:
060: public void setDocument(String inDocument) {
061:
062: if (isValidDocument(inDocument)) {
063: this .document = inDocument;
064: } else {
065: throw new UnexpectedSystemException(
066: "Not a valid document '" + inDocument + "'");
067: }
068: }
069:
070: public String getDocument() {
071:
072: String outValue = null;
073:
074: outValue = this .document;
075:
076: return outValue;
077: }
078:
079: //
080: public SystemEntityUpdates getSystemEntityUpdates(
081: SystemEntityUpdatesContext inSeuc) {
082: //
083: throw UnexpectedSystemException.unknownState();
084: }
085:
086: //
087: public void initialize(InitializeConceptTagContext inIctc) {
088: //
089: throw UnexpectedSystemException.unknownState();
090: }
091:
092: //
093: public void appraise(AppraiseConceptTagContext inCtic) {
094: //
095: throw UnexpectedSystemException.unknownState();
096: }
097:
098: public int getVersion() {
099: //
100: throw UnexpectedSystemException.unknownState();
101: }
102: }
|