Class AbstractOsidNode
java.lang.Object
net.okapia.osid.jamocha.spi.AbstractIdentifiable
net.okapia.osid.jamocha.spi.AbstractOsidNode
- All Implemented Interfaces:
Containable, Identifiable, OsidNode
- Direct Known Subclasses:
AbstractAcademyNode, AbstractAccountNode, AbstractActivityNode, AbstractAddressBookNode, AbstractAgencyNode, AbstractAntimatroidNode, AbstractAuctionHouseNode, AbstractBankNode, AbstractBillingNode, AbstractBinNode, AbstractBlogNode, AbstractBookNode, AbstractBusinessNode, AbstractBusinessNode, AbstractCalendarNode, AbstractCampusNode, AbstractCatalogNode, AbstractCatalogueNode, AbstractChecklistNode, AbstractConfigurationNode, AbstractCookbookNode, AbstractCourseCatalogNode, AbstractDepotNode, AbstractDictionaryNode, AbstractDistributorNode, AbstractEngineNode, AbstractEngineNode, AbstractFamilyNode, AbstractForumNode, AbstractFoundryNode, AbstractFrontOfficeNode, AbstractGradebookNode, AbstractGraphNode, AbstractInquestNode, AbstractJournalNode, AbstractLocationNode, AbstractLogNode, AbstractMailboxNode, AbstractMapNode, AbstractNode, AbstractObjectiveBankNode, AbstractObjectiveNode, AbstractOfficeNode, AbstractOntologyNode, AbstractOrganizationNode, AbstractOublietteNode, AbstractPollsNode, AbstractProcessNode, AbstractProfileNode, AbstractPublisherNode, AbstractQualifierNode, AbstractRealmNode, AbstractRepositoryNode, AbstractStockNode, AbstractStoreNode, AbstractSubjectNode, AbstractSystemNode, AbstractTermNode, AbstractTodoNode, AbstractUtilityNode, AbstractVaultNode, AbstractWarehouseNode
An abstract template for an OsidNode.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLeaf()Tests if this node is a leaf in the hierarchy (has no children).booleanisRoot()Tests if this node is a root in the hierarchy (has no parents).booleanTests if thisContainableis sequestered in that it should not appear outside of its aggregated composition.protected voidleaf()Designates this node as a leaf.protected voidroot()Designates this node as a root.protected voidunleaf()Designates this node as a non-leaf.protected voidunroot()Designates this node as a non-root.Methods inherited from class AbstractIdentifiable
current, equals, getId, hashCode, isCurrent, setId, stale, toStringModifier and TypeMethodDescriptionprotected voidcurrent()Sets the current flag totrue.final booleanDetermines if the givenIdis equal to this one.getId()Gets theIdassociated with this instance of this OSID object.inthashCode()Returns a hash code value for thisOsidObjectbased on theId.booleanTests to see if the last method invoked retrieved up-to-date data.protected voidSets theIdassociated with this instance of this OSID object.protected voidstale()Sets the current flag tofalse.toString()Returns a string representation of this OsidObject.Methods inherited from interface OsidNode
getChildIds, getParentIds, hasChildren, hasParents
-
Constructor Details
-
AbstractOsidNode
public AbstractOsidNode()Constructs a newAbstractOsidNode.
-
-
Method Details
-
isSequestered
Tests if thisContainableis sequestered in that it should not appear outside of its aggregated composition.- Specified by:
isSequesteredin interfaceContainable- Returns:
trueif this containable is sequestered,falseif this containable may appear outside its aggregate
-
isRoot
Tests if this node is a root in the hierarchy (has no parents). A node may have no more parents available in this node structure but is not a root in the hierarchy. If bothisRoot()andhasParents()is false, the parents of this node may be accessed thorugh another node structure retrieval. -
root
protected void root()Designates this node as a root. -
unroot
protected void unroot()Designates this node as a non-root. -
isLeaf
Tests if this node is a leaf in the hierarchy (has no children). A node may have no more children available in this node structure but is not a leaf in the hierarchy. If bothisLeaf()andhasChildren()is false, the children of this node may be accessed thorugh another node structure retrieval. -
leaf
protected void leaf()Designates this node as a leaf. -
unleaf
protected void unleaf()Designates this node as a non-leaf.
-