/* * Decompiled with CFR 0.152. */ package com.tridium.sys.schema; import com.tridium.sys.schema.NProperty; import javax.baja.sys.BFacets; import javax.baja.sys.BTopic; import javax.baja.sys.BValue; import javax.baja.sys.Topic; import javax.baja.sys.Type; public class NTopicProperty extends NProperty implements Topic { public final boolean isTopic() { return true; } public final Topic asTopic() { return this; } public Type getEventType() { Type type = ((BTopic)this.value).getEventType(); if (type == null) { type = BValue.TYPE; } return type; } public BFacets getFacets() { BFacets bFacets = ((BTopic)this.value).getFacets(); if (bFacets == null || bFacets.isNull()) { return super.getFacets(); } return bFacets; } public String toString() { return this.name + "! " + this.getEventType(); } public NTopicProperty(String string, int n, BTopic bTopic, BFacets bFacets) { super(string, n, bTopic, bFacets); } }